I am currenly working on one custom module for magento 1.9.1
I am stuck on getting the session value of the checkouts subtotal.
I know how to get it in a template file but i have to get in in a simple php file.
This is the code that i am tring to get the value:
<?PHP
require('app/Mage.php'); //Path to Magento
Mage::app();
echo Mage::getSingleton('checkout/session')->getQuote()->getSubtotal();
?>
It's not returning the value. The module is located in /app/code/local if it is important.
Did i have to make any function or something ?
Thanks!