When I add items to my cart the grand total updates correctly but when I visit /checkout/cart/ for the first time the grand total is zero although the items are listed correctly.

Refreshing the cart page corrects the total, so this only happens on the first view. Subsequent visits to the cart page are correct so I'm guessing it's something to do with the session but don't know where to start.

Any help appreciated.

  • Have you installed any third party modules that work on Cart page or totals? Commented Jun 12, 2015 at 6:58

2 Answers 2


That might be related to an extension that hooks into the collectTotals() methods, which are called on every refresh of the cart. If an extension relies on data that is not present yet at the first time the totals are collected, it might mess them up.

To debug, search for _collect_totals_ and _collect_totals_ in all config.xml files below app/code and see in which modules you get results (excluding those from core/Mage). You'll find observer definitions for events like sales_quote_address_collect_totals_before.

Disable all extensions you find, and if this solves the problem, enable them again one by one until it appears again. Then it's time to examine the observer code and/or contact the extension vendor.

  • Great. I would first check if any extension rewriting order-total by this link. Commented Jun 8, 2015 at 9:27
  • You can probably find details in the exception log after you enable it, as exception are suppressed, but still logged. The module should probably depend on Mage_Sales and/or Mage_Schipment to work correctly - the information that is missing for these modules is address or shipping related.
    – user4351
    Commented Jun 8, 2015 at 9:28

Try to selectively disable third-party modules:


there must be a problem with one of them!

The reason can also be found by commenting in a third-party module config.xml in a way like this:


You can also try to adjust <before> or <after>

And to debug the model specified in <class>...</class>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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