Update total item and price in cart Magento


After add or remove number products in cart by code.

Example: event, etc..

This code will update total number of products and price in current cart.

Code update total products and price in cart




  • setTotalsCollectedFlag(false): Is False will apply this update code

View more detail at function collectTotals() in app/code/core/Mage/Sales/Model/Quote.php.

About Author

Là một developer rất ham chơi nhưng không ham hố, không ham chơi nhưng rất thích cầm đầu...

Comments are closed.

%d bloggers like this: