0

What is the 'quote' table for? And what is the difference between 'quote' and 'quote_adress' table ?

Does anyone know what is the difference ? Thanks in advance.

1

A quote in Magento is basically an order that hasn't been placed yet. It contains product items (shopping cart), addresses and payment/shipping methods. It is created as soon as you add an item to cart. During checkout, billing and shipping data is added to the quote. Finally, when the user clicks place order, the quote is converted to an order.

"quote_adress"

A quote object would normally contain 2 address objects, but can contain more if multiple delivery addresses are present.

In regards to the 'collecttotals' method(s): Lets first understand each method, and its purpose:

The method in Mage_Sales_Model_Quote, is the initial entry point for the Totals Collector subsystem, and is initiated by a cart save,

(this allows you to inject class methods into the cart calculations, to affect the outcome of the cart totals - example: calculations of cart discounts)

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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