Not getting subtotal in custom sales quote address total abstract model
문제
I have override Mage_Sales_Model_Quote_Address_Total_Abstract
with my custom model to add and display custom additional fee to user but i am not getting the subtotal value in it.
I have used $address->getSubTotal()
and it is returning zero.
Help me to get subtotal.
Thanks
해결책
Subtotal is calculated right before grand total. This means if your total is caluclated before the subtotal, there is no subtotal to get.
다른 팁
Subtotal can be found using:
$subtotal = $address -> getTotalAmount('subtotal');
It worked for me.
제휴하지 않습니다 magento.stackexchange