Calculation problem in Cart Module

  • Posts: 12
  • Thank you received: 1
11 years 2 months ago #124122

Hi,

As you can see on this page ( semillascantueso.com/catalogo-virtual/pr...nocarpus-decorticans ), our products have more than one price, depending on the amount of units the customer buys. For this particular products the prices are set like this:



(note: 1 unit is 10 grams, which is why why the product page shows 10, 100 and 1000 gr, but this is done with language overrides, adding a 0 to %s)

Now, when I add 1 to 9 units to the cart, the cart module shows the correct price. But when I get to 10 units, the price for this product in the cart module gets multiplied by 10 (showing 165 in stead of 16,50 and when I add 100 units the price gets multiplied by 100 (showing 11000 in stead of 110).

The thing is that this problem is limited to the cart module and only shows up in the line for this product. The total price is shown correctly in the cart, and also if I go to checkout, everything is correct.

Any insights would be very welcome! Ah, the site is in Spanish (for now). Hope that's not a problem.

I'm using Hikashop Business 2.2.1 on Joomla 2.5.14 on a server with PHP version 5.3.27

Thanks!
MF

Attachments:
Last edit: 11 years 2 months ago by cantueso.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #124145

Hi,

I see your problem in your website. I see that the price is not good in the "product cart" but is right for the "checkout cart".
Do you have an override for the view "product | listing_price" ?

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.
The following user(s) said Thank You: cantueso

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

  • Posts: 12
  • Thank you received: 1
11 years 2 months ago #124154

Yes!!!

I set up this site a year ago, but only as a catalogue and made some minor changes in some views to make it work for us, so these views haven't been updated since. I didn't even remember!

I removed my tweaks and every-thing's fine now!

Big thumbs up! Thanks!

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

Time to create page: 0.062 seconds
Powered by Kunena Forum