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*