Page 1 of 1
Checkout - wrong brutto prices displayed
Posted: 22 Apr 2020, 11:28
by pixelstun.de
Currently brutto prices don't seem to be displayed the right way, when applying taxes (netto prices are displayed twice).
https://imgur.com/a/siBzUaa
I changed line 206 in components\com_phocacart\layouts\cart_checkout.php to
Code: Select all
echo '<div class="'.$cB.$cVRow.$lineThroughClass.' ph-checkout-cart-brutto">'.$price->getPriceFormat($v['final'] +$v['tax'] * $v['quantity']).'</div>';
which fixes it for my situation but the devs should take a look at it. (Did not test it in other configurations).
Re: Checkout - wrong brutto prices displayed
Posted: 22 Apr 2020, 12:37
by Benno
Hi,
Maybe I get you wrong, but in my opinion the price is added correctly under Total. Also in your example:
Kind regards,
Benno
Re: Checkout - wrong brutto prices displayed
Posted: 23 Apr 2020, 13:12
by pixelstun.de
Hi Benno,
thank you for your answer. You're right, total is calculated the right way. But the green frame in my picture is supposed to be the brutto price not subtotal netto price (take a look at the source). While this might be right for US market and some others, it does not seem to be the way it is in most EU countries, where customers are used to see subtotals including taxes.
If this is intended behavior, it would be nice to have a switch to fix this, as some may find this misleading.
Re: Checkout - wrong brutto prices displayed
Posted: 23 Apr 2020, 16:12
by Benno
Hi,
(netto prices are displayed twice)
I probably still haven't understood you correctly.
The fact that the netto price appears twice is only because the multiplier is 1. If as in my example, 2 black organic cotton T-shirts size XL would be ordered, in checkout will appear, the price (excl. tax) and the price multiplied by two (excl. tax). See image:
But the green frame in my picture is supposed to be the brutto price not subtotal netto price
So is that a labeling problem? Is that better?

Could probably be solved with a language override ...
For example:
viewtopic.php?f=44&t=61034
Kind regards,
Benno
Re: Checkout - wrong brutto prices displayed
Posted: 23 Apr 2020, 17:05
by Jan
Hi, only additional info, Phoca Cart uses vertical method to display the prices:
