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

#   Calculation problem in Cart Module

##

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

Less More

- Posts: 12
- Thank you received: 1
-
-

13 years 1 month ago -  13 years 1 month ago [\#124122](#124122) by [cantueso](/forum/user/9256-cantueso "View cantueso's Profile")  *[Calculation problem in Cart Module](/forum/3-bug-report/862129-calculation-problem-in-cart-module#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")* was created by *[cantueso](/forum/user/9256-cantueso "View cantueso's Profile")*

Hi,

As you can see on this page ([ semillascantueso.com/catalogo-virtual/pr...nocarpus-decorticans](http://semillascantueso.com/catalogo-virtual/producto/6544-adenocarpus-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:

[ ![h1b93566.png](/forum/attachment/12337) ](/forum/attachment/12337 "h1b93566.png")

(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

- [ ![h1b93566.png](/forum/attachment/12337) ](/forum/attachment/12337 "h1b93566.png") [ ](/forum/attachment/12337?download=1 "h1b93566.png")

Last edit: 13 years 1 month ago by [cantueso](/forum/user/9256-cantueso "View cantueso's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjIxMjktY2FsY3VsYXRpb24tcHJvYmxlbS1pbi1jYXJ0LW1vZHVsZT90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#124145](#124145) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Calculation problem in Cart Module](/forum/3-bug-report/862129-calculation-problem-in-cart-module#124145 "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")*

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 &#124; listing_price" ?

Regards,

---

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

The following user(s) said Thank You: [cantueso](/forum/user/9256-cantueso "View cantueso's Profile")

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

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

Less More

- Posts: 12
- Thank you received: 1
-
-

13 years 1 month ago [\#124154](#124154) by [cantueso](/forum/user/9256-cantueso "View cantueso's Profile")  Replied by *[cantueso](/forum/user/9256-cantueso "View cantueso's Profile")* on topic *[Calculation problem in Cart Module](/forum/3-bug-report/862129-calculation-problem-in-cart-module#124154 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjIxMjktY2FsY3VsYXRpb24tcHJvYmxlbS1pbi1jYXJ0LW1vZHVsZT90bXBsPW1hcmtkb3du) 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.104 seconds

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