Exemple #1
0
 /**
  * Action predispatch
  *
  * Check customer authentication for some actions
  */
 public function preDispatch()
 {
     parent::preDispatch();
     $action = $this->getRequest()->getActionName();
     $loginUrl = Mage::helper('customer')->getLoginUrl();
     if (!Mage::getSingleton('customer/session')->authenticate($this, $loginUrl)) {
         $this->setFlag('', self::FLAG_NO_DISPATCH, true);
     }
 }
 protected function _construct()
 {
     parent::_construct();
     $this->_orderHelper = Mage::helper('ebayenterprise_order');
     $this->_orderFactory = Mage::helper('ebayenterprise_order/factory');
 }