Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Subtotal and grand total update after placing order
 
Jignesh Chauhan
Sr. Member
 
Total Posts:  176
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

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