Hikashop gives wrong totals on non-default currency

  • Posts: 29
  • Thank you received: 1
7 years 1 week ago #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_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

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 1 week ago #282530

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
7 years 1 week ago #282554

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 or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
7 years 1 week ago #282581

Hello,

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

Thank you !

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
7 years 1 week ago #282731

Discount setup:
screenshots.firefox.com/VLZfmCsALwNzR3Mb/lambcuts.net

Display setup:
screenshots.firefox.com/K1QONkidliEXXvPK/lambcuts.net

Let me know if I can send you anything else.

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 6 days ago #282832

Hi,

Well, I tried to reproduce the problem but I'm not able to.
Here is what I have :
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 or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum