I'm using Magento 1.9 and am trying to gain a better understanding of the method, getContinueShoppingUrl()
, when called by Mage::getSingleton('checkout/session')
but can't seem to find the file that defines the method. Tracing through class inheritance, this is what I've got:
core/Mage/Checkout/Model/Session.php:
class Mage_Checkout_Model_Session extends Mage_Core_Model_Session_Abstract
{
/* getContinueShoppingUrl() not defined */
}
core/Mage/Core/Model/Session/Abstract.php:
class Mage_Core_Model_Session_Abstract extends Mage_Core_Model_Session_Abstract_Varien
{
/* getContinueShoppingUrl() not defined */
}
core/Mage/Core/Model/Session/Abstract/Varien.php:
class Mage_Core_Model_Session_Abstract_Varien extends Varien_Object
{
/* getContinueShoppingUrl() not defined */
}
lib/Varien/Object.php:
class Varien_Object implements ArrayAccess
{
/* getContinueShoppingUrl() not defined */
}
So how does getContinueShoppingUrl
get called by Mage::getSingleton('checkout/session')?
The only place that I found a definition for the method was in core/Mage/Checkout/Block/Cart.php
but the getContinueShoppingUrl()
method in class Mage_Checkout_Block_Cart
is where I started the trace for: Mage::getSingleton('checkout/session')->getContinueShoppingUrl(true);