Try the Demo

Magento Forum

   
Subtotal and grand total update after placing order
 
Jignesh Chauhan
Sr. Member
 
Total Posts:  170
Joined:  2009-12-23
 

Hello there,

I want to update the subtotal and grand total on Magento with some additional charges and it should affected to order, invoice, cart page, order review page on check out?

I have rewrite two file to update subtotal and subtotal on database table

Below code written in config.xml file

<sales>
    <
quote>
        <
totals>
            <
subtotal>
                <class>
ship/quote_address_total_subtotal</class>
                <
after>tax_subtotal</after>
            </
subtotal>
            <
grand_total>
                <class>
ship/quote_address_total_grand</class>
                 <
after>grand_total</after>
            </
grand_total>
        </
totals>
    </
quote>
</
sales>

Below two class has been rewritten.

Mage_Sales_Model_Quote_Address_Total_Subtotal
Mage_Sales_Model_Quote_Address_Total_Grand

I have rewritten above two class because i have added extra charge value in subtotal and grand total and it works fine on cart page and order review page on checkout last steps but when i place order it takes re-calculate all price on product and where that things happen in core file i didn’t found yet. So can anybody help me out from this problem would much appreciated.

Can anybody please help me out from this issue?

Thanks,
Jignesh

 Signature 

Thanks and Regards,
Jignesh Chauhan
Skype : er.jignesh.chauhan

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top