Page 1 of 1

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

Posted: 13 Aug 2026, 16:32
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.

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

Posted: 17 Aug 2026, 00:05
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

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

Posted: 17 Aug 2026, 12:58
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

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

Posted: 17 Aug 2026, 16:22
by Jan
BTW, when you switch to standard template, do you get the same output?

Jan

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

Posted: 17 Aug 2026, 19:53
by christine
Please, be informed:
https://www.phoca.cz/news

Kind regards,
Christine

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

Posted: 18 Aug 2026, 19:56
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

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

Posted: 18 Aug 2026, 23:38
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

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

Posted: 19 Aug 2026, 00:26
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.)

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

Posted: 19 Aug 2026, 09:56
by Nidzo
What happens when you put a quantity of 2 or more fore same article?

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

Posted: 21 Aug 2026, 11:18
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>