Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does not

Phoca Cart - complex e-commerce extension
OlafR
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Aug 2026, 16:29

Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does not

Post by OlafR »

Environment:

Phoca Cart 6.1.5
Joomla 6.1.2
PHP 8.5.9

Tax settings (all confirmed via Options screenshots):

Tax Calculation: Tax Inclusive Price (Brutto)
Tax Calculation (Sales): Tax Inclusive Amount (Brutto)
Tax Calculation (Sales) - Change Subtotal: No
Tax Recapitulation: Change total amount and rounding in calculation

Issue:
On the checkout page (#ph-pc-checkout-box), the .ph-checkout-cart-brutto field shows the same value as .ph-checkout-cart-netto, instead of netto + tax.

Example from a real order:

.ph-checkout-cart-netto: € 28,57
.ph-checkout-cart-tax: € 5,43
.ph-checkout-cart-brutto: € 28,57 (expected: € 34,00)

The order total at the bottom of the checkout page is calculated correctly (subtotal € 89,91 + tax € 17,09 = € 107,00, matching the original brutto product prices).

Important clue: the mini-cart module (mod_phocacart_cart, the dropdown cart in the header) calculates and displays the brutto amount correctly for the same cart contents. Only the checkout page view shows the incorrect brutto = netto value per line item. This suggests the two views may use different calculation logic for the per-line brutto amount.

Tested with a completely fresh session/browser (Brave, no cache) to rule out caching — issue persists.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49543
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does n

Post by Jan »

Hi, can you paste screenshot of what do you exactly mean?

Maybe it is related to X and Y calculation type:

Image

As default, Phoca Cart uses Y type.

Jan
If you find Phoca extensions useful, please support the project
OlafR
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Aug 2026, 16:29

Re: Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does n

Post by OlafR »

Hi, No problem. Attached 2 screendump with also the inspect in it. One how it will be (with netto and tax hidden), and the other screenshot without them hidden.
https://imgur.com/a/rlkTdMA
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49543
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does n

Post by Jan »

BTW, when you switch to standard template, do you get the same output?

Jan
If you find Phoca extensions useful, please support the project
OlafR
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Aug 2026, 16:29

Re: Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does n

Post by OlafR »

Hi Jan,

<div class="row ph-vertical-align ph-checkout-cart-row-item"><div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-image ph-row-image" data-pc-label="Afbeelding"><img src="/images/cartproducts/Windkracht/thumbs/cart_thumb_s_windkracht.png" alt="Windkracht" class="img-responsive ph-img-cart-checkout"></div><div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-title" data-pc-label="Product"><a href="/bordspellen/windkracht">Windkracht</a></div><div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-netto" data-pc-label="Prijs (excl. btw)">€ 28,88</div><div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-quantity" data-pc-label="Hoeveelheid"><form action="/checkout" class="form-inline phItemCartUpdateBoxForm" method="post"><div class="input-group"><input type="hidden" name="id" value="2"><input type="hidden" name="catid" value="1"><input type="hidden" name="idkey" value="2::"><input type="hidden" name="ticketid" value="0"><input type="hidden" name="unitid" value="0"><input type="hidden" name="sectionid" value="0"><input type="text" class="form-control ph-input-quantity ph-input-xs" name="quantity" value="1"><input type="hidden" name="task" value="checkout.update"><input type="hidden" name="tmpl" value="component"><input type="hidden" name="option" value="com_phocacart"><input type="hidden" name="return" value="aHR0cHM6Ly9jb25jZXB0LnVuaWVrYm9yZHNwZWwubmwvY2hlY2tvdXQ="> <button class="btn btn-success btn-sm ph-btn" type="submit" name="action" value="update"><svg class="pc-si pc-si-refresh" title="Aantal in winkelwagen bijwerken"><use xlink:href="/media/com_phocacart/images/svg-definitions.svg#pc-si-refresh"></use></svg></button> <button class="btn btn-danger btn-sm ph-btn" type="submit" name="action" value="delete"><svg class="pc-si pc-si-trash" title="Product uit winkelwagen verwijderen"><use xlink:href="/media/com_phocacart/images/svg-definitions.svg#pc-si-trash"></use></svg></button><input type="hidden" name="7f9fcaa956dc4895f2a77a8bb104d090" value="1"></div></form></div><div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-tax" data-pc-label="Belasting">€ 6,07</div><div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-brutto" data-pc-label="Prijs">€ 28,88</div></div>

Still the same with Cassiopeia - Default template. See also screenshot.
https://imgur.com/a/JobqF2V
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10291
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does n

Post by Benno »

Hi,
Sorry, I can't see any difference in your screenshot compared to Y type screenshot from Jan.
As default, Phoca Cart uses Y type
Image

Image


Kind regards,
Benno
OlafR
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Aug 2026, 16:29

Re: Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does n

Post by OlafR »

Hi Benno, i see what that, so brutto price is the same as netto price in phoca? But only on the checkout page and not on the cart module where brutto is incl. VAT and netto excl. VAT? (and on other pages like products etc.), only on the checkout page.

(checkout:
<div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-netto" data-pc-label="Prijs (excl. btw)">€ 28,10</div>
<div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-tax" data-pc-label="Belasting">€ 5,90</div>
<div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-brutto" data-pc-label="Prijs">€ 28,10</div>)

(module:
<div class="col-2 col-sm-2 col-md-2 ph-small ph-cart-small-price ph-right ph-netto">€ 28,10</div>
<div class="col-2 col-sm-2 col-md-2 ph-small ph-cart-small-price ph-right ph-tax">€ 5,90</div>
<div class="col-2 col-sm-2 col-md-2 ph-small ph-cart-small-price ph-right ph-brutto">€ 34,00</div>)

Offcourse i can make an script that totals the netto and tax together on the checkout. But still, why would brutto be the same as netto? And only on the checkout page and not on the rest of the component (module, product pages, etc.)
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 561
Joined: 07 Nov 2018, 14:55

Re: Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does n

Post by Nidzo »

What happens when you put a quantity of 2 or more fore same article?
OlafR
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Aug 2026, 16:29

Re: Checkout: brutto amount equals netto amount (tax not added) — cart module calculates correctly, checkout page does n

Post by OlafR »

Ah i see (3 the same products);
Checkout:
<div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-netto" data-pc-label="Prijs (excl. btw)">€ 23,97</div>
<div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-tax" data-pc-label="Belasting">€ 15,09</div>
<div class="col-2 col-sm-2 col-md-2 ph-vertical-align-row ph-checkout-cart-brutto" data-pc-label="Prijs">€ 71,91</div>

The difference between netto-brutto in phoca checkout is not incl-excl VAT but the calculation for the number of products.

But still, why is this behavior in the checkout different as in the cart module?
Cart module:
<div class="col-2 col-sm-2 col-md-2 ph-small ph-cart-small-price ph-right ph-netto">€ 71,91</div>
<div class="col-2 col-sm-2 col-md-2 ph-small ph-cart-small-price ph-right ph-tax">€ 15,09</div>
<div class="col-2 col-sm-2 col-md-2 ph-small ph-cart-small-price ph-right ph-brutto">€ 87,00</div>
Post Reply