Magento 1.9 Which database is getQuote()->getGrandTotal() used?
-
19-12-2020 - |
Question
I have this code in a custom module
Mage::getSingleton("checkout/cart")->getQuote()->getGrandTotal()
Which table and which column does this code getting data from?
First I thought it was the field grand_total from sales_flat_quote, but it's not?
Solution
For this code below table used
sales_flat_quote
and Feild used is of this table
grand_total
Edit
If you look at this file
app/code/core/Mage/Sales/etc/config.xml
then this is the same table is used for sales/quote
Check this way
Mage::getSingleton("checkout/cart")->getQuote()->getId();
and check grand_total at that Id
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange