Magento 1.9 Which database is getQuote()->getGrandTotal() used?
-
19-12-2020 - |
문제
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?
해결책
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
제휴하지 않습니다 magento.stackexchange