[Skip to main content](#vessel-content)

#   Hikashop gives wrong totals on non-default currency

##

- **[heinburgh@gmail.com](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile")**
- [![heinburgh@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/53446-heinburgh-gmail-com)

Less More

- Posts: 29
- Thank you received: 1
-
-

9 years 2 weeks ago [\#282450](#282450) by [heinburgh@gmail.com](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile")  *[Hikashop gives wrong totals on non-default currency](/forum/27-checkout/892758-hikashop-gives-wrong-totals-on-non-default-currency#282450 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8 -- PHP version -- : 7.1.10 -- Browser(s) name and version -- : Firefox 56.0.2 64bit -- Error-message(debug-mod must be tuned on) -- : none  Hi,  I may be wronf but it looks like there is a glitch in the checkout listing&#95;price.php.  When I have discounted items in the checkout, the discounted and normal prices show without issues. (  screenshots.firefox.com/oUVq3vKCJe8DYpyf/localhost )  However, when in the same screen I switch the currency to USD, the USD totals do not show correctly. (  screenshots.firefox.com/NsFbaVcOjGubV7R1/localhost )  You'll see that the USD/ZMK conversion for the discounted price (You Pay) is correct. But the USD/ZMK conversion for the Normal Price is faulty - on the left, under UNIT PRICE, the ZMK equivalent for the USD price is absent, and on the right side, under TOTAL PRICE, the ZMK equivalent stays at the price for one unit - it does not increase when I increase the unit quantity.  So it looks to me like the ZMK equivalent in brackets () under the TOTAL PRICE column should actually be on the left under the UNIT PRICE column. And the ZMK equivalent of the TOTAL PRICE column is missing.  This looks like a simple PHP issue, but my PHP is useless so I need to ask for help on the forum.  Thanks, Hein")* was created by *[heinburgh@gmail.com](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile")*

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8
-- PHP version -- : 7.1.10
-- Browser(s) name and version -- : Firefox 56.0.2 64bit
-- Error-message(debug-mod must be tuned on) -- : none

Hi,

I may be wronf but it looks like there is a glitch in the checkout listing_price.php.

When I have discounted items in the checkout, the discounted and normal prices show without issues. ([ screenshots.firefox.com/oUVq3vKCJe8DYpyf/localhost](https://screenshots.firefox.com/oUVq3vKCJe8DYpyf/localhost))

However, when in the same screen I switch the currency to USD, the USD totals do not show correctly. ([ screenshots.firefox.com/NsFbaVcOjGubV7R1/localhost](https://screenshots.firefox.com/NsFbaVcOjGubV7R1/localhost))

You'll see that the USD/ZMK conversion for the discounted price (You Pay) is correct. But the USD/ZMK conversion for the Normal Price is faulty - on the left, under UNIT PRICE, the ZMK equivalent for the USD price is absent, and on the right side, under TOTAL PRICE, the ZMK equivalent stays at the price for one unit - it does not increase when I increase the unit quantity.

So it looks to me like the ZMK equivalent in brackets () under the TOTAL PRICE column should actually be on the left under the UNIT PRICE column. And the ZMK equivalent of the TOTAL PRICE column is missing.

This looks like a simple PHP issue, but my PHP is useless so I need to ask for help on the forum.

Thanks,
Hein

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Mjc1OC1oaWthc2hvcC1naXZlcy13cm9uZy10b3RhbHMtb24tbm9uLWRlZmF1bHQtY3VycmVuY3k/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 2 weeks ago [\#282530](#282530) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Hikashop gives wrong totals on non-default currency](/forum/27-checkout/892758-hikashop-gives-wrong-totals-on-non-default-currency#282530 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8 -- PHP version -- : 7.1.10 -- Browser(s) name and version -- : Firefox 56.0.2 64bit -- Error-message(debug-mod must be tuned on) -- : none  Hi,  I may be wronf but it looks like there is a glitch in the checkout listing&#95;price.php.  When I have discounted items in the checkout, the discounted and normal prices show without issues. (  screenshots.firefox.com/oUVq3vKCJe8DYpyf/localhost )  However, when in the same screen I switch the currency to USD, the USD totals do not show correctly. (  screenshots.firefox.com/NsFbaVcOjGubV7R1/localhost )  You'll see that the USD/ZMK conversion for the discounted price (You Pay) is correct. But the USD/ZMK conversion for the Normal Price is faulty - on the left, under UNIT PRICE, the ZMK equivalent for the USD price is absent, and on the right side, under TOTAL PRICE, the ZMK equivalent stays at the price for one unit - it does not increase when I increase the unit quantity.  So it looks to me like the ZMK equivalent in brackets () under the TOTAL PRICE column should actually be on the left under the UNIT PRICE column. And the ZMK equivalent of the TOTAL PRICE column is missing.  This looks like a simple PHP issue, but my PHP is useless so I need to ask for help on the forum.  Thanks, Hein")*

Hello,

Yes regarding your screenshot it looks like the original price is not displayed depending the product quantity.

Would it be possible to have more details about the discount you're using so we can reproduce your settings and know exactly in which branch of the code that missing usage of the quantity is ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Mjc1OC1oaWthc2hvcC1naXZlcy13cm9uZy10b3RhbHMtb24tbm9uLWRlZmF1bHQtY3VycmVuY3k/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[heinburgh@gmail.com](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile")**
- [![heinburgh@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/53446-heinburgh-gmail-com)

Less More

- Posts: 29
- Thank you received: 1
-
-

9 years 2 weeks ago [\#282554](#282554) by [heinburgh@gmail.com](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile")  Replied by *[heinburgh@gmail.com](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile")* on topic *[Hikashop gives wrong totals on non-default currency](/forum/27-checkout/892758-hikashop-gives-wrong-totals-on-non-default-currency#282554 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8 -- PHP version -- : 7.1.10 -- Browser(s) name and version -- : Firefox 56.0.2 64bit -- Error-message(debug-mod must be tuned on) -- : none  Hi,  I may be wronf but it looks like there is a glitch in the checkout listing&#95;price.php.  When I have discounted items in the checkout, the discounted and normal prices show without issues. (  screenshots.firefox.com/oUVq3vKCJe8DYpyf/localhost )  However, when in the same screen I switch the currency to USD, the USD totals do not show correctly. (  screenshots.firefox.com/NsFbaVcOjGubV7R1/localhost )  You'll see that the USD/ZMK conversion for the discounted price (You Pay) is correct. But the USD/ZMK conversion for the Normal Price is faulty - on the left, under UNIT PRICE, the ZMK equivalent for the USD price is absent, and on the right side, under TOTAL PRICE, the ZMK equivalent stays at the price for one unit - it does not increase when I increase the unit quantity.  So it looks to me like the ZMK equivalent in brackets () under the TOTAL PRICE column should actually be on the left under the UNIT PRICE column. And the ZMK equivalent of the TOTAL PRICE column is missing.  This looks like a simple PHP issue, but my PHP is useless so I need to ask for help on the forum.  Thanks, Hein")*

I sent you a pm with backend login.

I have one product category called Current Specials, and all products within this category is subject to a 15% discount. It is on these discounted items that the problem exists.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Mjc1OC1oaWthc2hvcC1naXZlcy13cm9uZy10b3RhbHMtb24tbm9uLWRlZmF1bHQtY3VycmVuY3k/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

9 years 2 weeks ago [\#282581](#282581) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Hikashop gives wrong totals on non-default currency](/forum/27-checkout/892758-hikashop-gives-wrong-totals-on-non-default-currency#282581 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8 -- PHP version -- : 7.1.10 -- Browser(s) name and version -- : Firefox 56.0.2 64bit -- Error-message(debug-mod must be tuned on) -- : none  Hi,  I may be wronf but it looks like there is a glitch in the checkout listing&#95;price.php.  When I have discounted items in the checkout, the discounted and normal prices show without issues. (  screenshots.firefox.com/oUVq3vKCJe8DYpyf/localhost )  However, when in the same screen I switch the currency to USD, the USD totals do not show correctly. (  screenshots.firefox.com/NsFbaVcOjGubV7R1/localhost )  You'll see that the USD/ZMK conversion for the discounted price (You Pay) is correct. But the USD/ZMK conversion for the Normal Price is faulty - on the left, under UNIT PRICE, the ZMK equivalent for the USD price is absent, and on the right side, under TOTAL PRICE, the ZMK equivalent stays at the price for one unit - it does not increase when I increase the unit quantity.  So it looks to me like the ZMK equivalent in brackets () under the TOTAL PRICE column should actually be on the left under the UNIT PRICE column. And the ZMK equivalent of the TOTAL PRICE column is missing.  This looks like a simple PHP issue, but my PHP is useless so I need to ask for help on the forum.  Thanks, Hein")*

Hello,

Can you directly send us screenshots of how you configured your Discounts ?

Thank you !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Mjc1OC1oaWthc2hvcC1naXZlcy13cm9uZy10b3RhbHMtb24tbm9uLWRlZmF1bHQtY3VycmVuY3k/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[heinburgh@gmail.com](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile")**
- [![heinburgh@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/53446-heinburgh-gmail-com)

Less More

- Posts: 29
- Thank you received: 1
-
-

9 years 1 week ago [\#282731](#282731) by [heinburgh@gmail.com](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile")  Replied by *[heinburgh@gmail.com](/forum/user/53446-heinburgh-gmail-com "View heinburgh@gmail.com's Profile")* on topic *[Hikashop gives wrong totals on non-default currency](/forum/27-checkout/892758-hikashop-gives-wrong-totals-on-non-default-currency#282731 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8 -- PHP version -- : 7.1.10 -- Browser(s) name and version -- : Firefox 56.0.2 64bit -- Error-message(debug-mod must be tuned on) -- : none  Hi,  I may be wronf but it looks like there is a glitch in the checkout listing&#95;price.php.  When I have discounted items in the checkout, the discounted and normal prices show without issues. (  screenshots.firefox.com/oUVq3vKCJe8DYpyf/localhost )  However, when in the same screen I switch the currency to USD, the USD totals do not show correctly. (  screenshots.firefox.com/NsFbaVcOjGubV7R1/localhost )  You'll see that the USD/ZMK conversion for the discounted price (You Pay) is correct. But the USD/ZMK conversion for the Normal Price is faulty - on the left, under UNIT PRICE, the ZMK equivalent for the USD price is absent, and on the right side, under TOTAL PRICE, the ZMK equivalent stays at the price for one unit - it does not increase when I increase the unit quantity.  So it looks to me like the ZMK equivalent in brackets () under the TOTAL PRICE column should actually be on the left under the UNIT PRICE column. And the ZMK equivalent of the TOTAL PRICE column is missing.  This looks like a simple PHP issue, but my PHP is useless so I need to ask for help on the forum.  Thanks, Hein")*

Discount setup:
[ screenshots.firefox.com/VLZfmCsALwNzR3Mb/lambcuts.net](https://screenshots.firefox.com/VLZfmCsALwNzR3Mb/lambcuts.net)

Display setup:
[ screenshots.firefox.com/K1QONkidliEXXvPK/lambcuts.net](https://screenshots.firefox.com/K1QONkidliEXXvPK/lambcuts.net)

Let me know if I can send you anything else.

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Mjc1OC1oaWthc2hvcC1naXZlcy13cm9uZy10b3RhbHMtb24tbm9uLWRlZmF1bHQtY3VycmVuY3k/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 1 week ago [\#282832](#282832) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop gives wrong totals on non-default currency](/forum/27-checkout/892758-hikashop-gives-wrong-totals-on-non-default-currency#282832 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8 -- PHP version -- : 7.1.10 -- Browser(s) name and version -- : Firefox 56.0.2 64bit -- Error-message(debug-mod must be tuned on) -- : none  Hi,  I may be wronf but it looks like there is a glitch in the checkout listing&#95;price.php.  When I have discounted items in the checkout, the discounted and normal prices show without issues. (  screenshots.firefox.com/oUVq3vKCJe8DYpyf/localhost )  However, when in the same screen I switch the currency to USD, the USD totals do not show correctly. (  screenshots.firefox.com/NsFbaVcOjGubV7R1/localhost )  You'll see that the USD/ZMK conversion for the discounted price (You Pay) is correct. But the USD/ZMK conversion for the Normal Price is faulty - on the left, under UNIT PRICE, the ZMK equivalent for the USD price is absent, and on the right side, under TOTAL PRICE, the ZMK equivalent stays at the price for one unit - it does not increase when I increase the unit quantity.  So it looks to me like the ZMK equivalent in brackets () under the TOTAL PRICE column should actually be on the left under the UNIT PRICE column. And the ZMK equivalent of the TOTAL PRICE column is missing.  This looks like a simple PHP issue, but my PHP is useless so I need to ask for help on the forum.  Thanks, Hein")*

Hi,

Well, I tried to reproduce the problem but I'm not able to.
Here is what I have :
[ monosnap.com/file/7MvdLJliurgwpO0YWsEl0jDdqH3MLe](https://monosnap.com/file/7MvdLJliurgwpO0YWsEl0jDdqH3MLe)
The initial cost of the product is $10, converted to 6.67€ (currency rate of 1.5 to make calculations easier), with a discount of 50%, hene 3.33€ of unit price.
And the total prices are correct too.
Since there is no "you pay" / "normal price" texts there by default, wouldn't it come from the changes in the listing_price view override ?
If you switch temporarily to the default template of Joomla, does it display correct numbers ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Mjc1OC1oaWthc2hvcC1naXZlcy13cm9uZy10b3RhbHMtb24tbm9uLWRlZmF1bHQtY3VycmVuY3k/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
