Skip to main content

Q. What are total models responsible for in Magento?

Quote, invoice, creditmemo

- discount
- grand total
- shipping
- subtotal
- tax
- nominal
- custbalance
- freeshipping

dispatches event “sales_quote_address_discount_item” in collect method of Mage_Sales_Model_Quote_Address_Total_*
————-

Mage/Sales/Model/Quote/Address/Total/Collector.php
getCollectors() – Get total models array ordered for right *calculation logic*
getRetrievers() – Get total models array ordered for right *display sequence*

By Michael Cristancho

I'm a Digital Commerce and Experience evangelist who enjoys engaging in thought-provoking conversation and mutual exploration. I am a strong believer that learning never ends, and each day brings another opportunity to grow as an individual and professional.