I am having a requirement that I have to change the order of totals in a shopping cart in Magento. My requirement is shipping charge should display before Tax. Currently it is displaying as Subtotal-Tax-shipping charge-Grand Total and I need as Subtotal-shipping charge-Tax-Grand total. Can anyone help me from where I can edit this.
Rohit S
You can configure it in the Magento backend itself. Go to System->Configuration->Sales->Checkout Total Sort Order.Set the sorting order as you wish.
No need to change any code.
Just configure it from admin panel: Go to System->Configuration->Sales->Checkout Total Sort Order.Set the sorting order as you wish.
来源:https://stackoverflow.com/questions/14577006/changing-order-of-shopping-cart-totals-in-magento