Checkout - wrong brutto prices displayed

Phoca Cart - complex e-commerce extension
pixelstun.de
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Apr 2020, 12:51

Checkout - wrong brutto prices displayed

Post 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).
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9693
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Checkout - wrong brutto prices displayed

Post by Benno »

Hi,
Maybe I get you wrong, but in my opinion the price is added correctly under Total. Also in your example:

Image

Image

Kind regards,
Benno
pixelstun.de
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Apr 2020, 12:51

Re: Checkout - wrong brutto prices displayed

Post 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.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9693
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Checkout - wrong brutto prices displayed

Post 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:
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?
Image
Could probably be solved with a language override ...
For example: viewtopic.php?f=44&t=61034

Kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Checkout - wrong brutto prices displayed

Post by Jan »

Hi, only additional info, Phoca Cart uses vertical method to display the prices:

Image
If you find Phoca extensions useful, please support the project
Post Reply