Exemplo n.º 1
0
 /**
  * @return void
  */
 protected function _construct()
 {
     if (!$this->isCustomerLoggedIn()) {
         $this->getCheckout()->setStepData('login', array('label' => __('Checkout Method'), 'allow' => true));
     }
     parent::_construct();
 }
Exemplo n.º 2
0
 /**
  * Initialize billing address step
  *
  * @return void
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('billing', ['label' => __('Billing Information'), 'is_show' => $this->isShow()]);
     if ($this->isCustomerLoggedIn()) {
         $this->getCheckout()->setStepData('billing', 'allow', true);
     }
     parent::_construct();
 }
Exemplo n.º 3
0
 /**
  * @return void
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('payment', ['label' => __('Payment Information'), 'is_show' => $this->isShow()]);
     parent::_construct();
 }
Exemplo n.º 4
0
 /**
  * @return void
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('shipping_method', ['label' => __('Shipping Method'), 'is_show' => $this->isShow()]);
     parent::_construct();
 }
Exemplo n.º 5
0
 /**
  * @return void
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('review', array('label' => __('Order Review'), 'is_show' => $this->isShow()));
     parent::_construct();
     $this->getQuote()->collectTotals()->save();
 }
Exemplo n.º 6
0
 /**
  * Initialize shipping address step
  *
  * @return void
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('shipping', array('label' => __('Shipping Information'), 'is_show' => $this->isShow()));
     parent::_construct();
 }