Please explain why magento involve address while calculating grand total and other calculations while calling collectTotals() in saving cart.It involve table sales_flat_quote_address while interacting with sales_flat_quote

1 Answer 1


The shipping address is used to determine the cost of the shipping method, because it might be a different cost for the shipping whether you ship to USA, Germany or Denmark.

If a shipping method is already set in the session that is.

For example if you go into the checkout and select a shipping method and then go back to the cart, then your shipping costs will be shown on the cart page.

  • What if I need to add an attribute like tax in my case(advance partial payment) which is independent of shipping address?Do I need to add that attribute to sales_flat_quote_address May 11, 2015 at 9:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.