Ejemplo n.º 1
0
 /**
  * Init model, steps
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->_steps = array(self::STEP_SELECT_ADDRESSES => new Varien_Object(array('label' => Mage::helper('checkout')->__('Select Addressess'))), self::STEP_SHIPPING_WIFTWRAP => new Varien_Object(array('label' => Mage::helper('checkout')->__('Select Gift Box'))), self::STEP_SHIPPING => new Varien_Object(array('label' => Mage::helper('checkout')->__('Shipping Information'))), self::STEP_BILLING => new Varien_Object(array('label' => Mage::helper('checkout')->__('Billing Information'))), self::STEP_OVERVIEW => new Varien_Object(array('label' => Mage::helper('checkout')->__('Place Order'))), self::STEP_SUCCESS => new Varien_Object(array('label' => Mage::helper('checkout')->__('Order Success'))));
     foreach ($this->_steps as $step) {
         $step->setIsComplete(false);
     }
     $this->_checkout = Mage::getSingleton('checkout/type_multishipping');
     $this->_steps[$this->getActiveStep()]->setIsActive(true);
 }
 public function setCompleteStep($step)
 {
     $oReq = Mage::app()->getFrontController()->getRequest();
     $sKey = 'multi';
     $data = $oReq->getPost($sKey);
     if ($data) {
         $oAttribute = Mage::getModel('aitcheckoutfields/aitcheckoutfields');
         foreach ($data as $sKey => $sVal) {
             $oAttribute->setCustomValue($sKey, $sVal, 'multishipping');
         }
     }
     parent::setCompleteStep($step);
 }