public function init()
 {
     parent::init();
     $this->_payment = Axis::single('paymentPaypal/express');
     if (!$this->_getPayment()->isEnabled()) {
         $this->_redirect('checkout/cart');
     }
 }
示例#2
0
 /**
  * Return Checkout Model
  *
  * @return Axis_Checkout_Model_Checkout
  */
 public function init()
 {
     parent::init();
     $this->_helper->breadcrumbs(array('label' => Axis::translate('checkout')->__('Checkout'), 'controller' => 'cart', 'route' => 'checkout'));
 }