1

We're currently having a weird bug on our magento site. Sometimes a customer send us an email complaining about the shopping cart. The subtotal is indeed calculated wrong.

See an example here : http://imgur.com/ZDtgm9r

Our team was unable to reproduce it by any mean. Today we have the case where a SINGLE, simple product got its total mult by 3...

I dont know how i can help you, which file you may need or so. Neither totals.phtml nor Totals.php (where renderTotals() is defined) have been overriden.

This is probably close to this question : Why Magento Shopping Cart show wrong price and sometime not allow to add product?

We're stuck with it for weeks now... And we have no clue since we're unable to reproduce it. So here's my call to community. Did you have this bug ? How did you resolve it ? Or maybe do you have an advice from where it may come from ?

EDIT : If a customer checkout the whole cart, all the prices during checkout are OK.

Thanks to all of you

1

I recall something similar happening to a site some time ago (year+) - for some reason I cannot find my question regarding the issue.

Basically: cart totals got multiplied (sometimes 3 times) AFTER shipping was applied to the quote object. So after you leave cart to checkout, or in cart applied shipping.

In my case it was an errand 3rd party extension that had an observer, which added in a shipping address to the Quote object. Since there was already a shipping address selected, it ended up adding a 3rd address (and a 4th and so on, as you go back and forth between checkout and cart)

So, the quote object had:

1 x Billing address 2 x Shipping Address

Since totals are calculated on addresses, magento #1 internals faithfully iterated both the shipping addresses, and tallied up the totals.

I don't recall the exact details, but it was tracked down by wiping all order / order address data in the relevant tables. Then entering the checkout, and checking the order tables tables for entries.

It was then found multiple address were being inserted into the order address table.

Maybe your issue not the exact same issue, but may also be related to multiple addresses being attached to the quote.

Hope that helps in some way.

| improve this answer | |
  • That's interesting. I'll look into it, just in case. Thank you. The weird think is still it looks to appear randomly. If i'm right, in your case, it happened every time ? – Kévin Bruneau Nov 20 '15 at 12:34
  • Been a long time ago. But i am leaning to no. I don't think it happened every time. Had only some orders affected. – ProxiBlue Nov 20 '15 at 12:45
0

I've just posted a question related to this issue! We've a customer complaining about this! i.e. the subtotal is 3 times what it should be. Did you guys ever solve this problem?

Magento 1.7

| improve this answer | |
  • 1
    I think we solved it since we have no more (or very few) complains about it today. It was due to some session merging. Our site could be accessed at this time by www.domain.com or domain.com. The cookies created for both domain weren't merge by magento and somehow the price was multiplied. Feel free to ask more if you need it. – Kévin Bruneau Feb 8 '16 at 6:49
  • Thanks you, unless it happens again, I think I'll leave it. It's only happened once so far. Thanks you for your time! – Atomic Feb 8 '16 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.