public function init() { $initCheckout = $this->getCheckoutSession()->getCheckoutState() !== Mage_Checkout_Model_Session::CHECKOUT_STATE_BEGIN; $ret = parent::init(); if ($initCheckout) { $this->initAmscheckout(); } return $ret; }
/** * Initialize cart quote state to be able use it on cart page * * @return Mage_Checkout_Model_Cart */ public function init() { Mage::dispatchEvent('checkout_cart_init', array('cart' => $this)); parent::init(); }