Beispiel #1
0
 public function init()
 {
     $initCheckout = $this->getCheckoutSession()->getCheckoutState() !== Mage_Checkout_Model_Session::CHECKOUT_STATE_BEGIN;
     $ret = parent::init();
     if ($initCheckout) {
         $this->initAmscheckout();
     }
     return $ret;
 }
Beispiel #2
0
 /**
  * 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();
 }