コード例 #1
0
ファイル: Login.php プロジェクト: aiesh/magento2
 /**
  * @return void
  */
 protected function _construct()
 {
     if (!$this->isCustomerLoggedIn()) {
         $this->getCheckout()->setStepData('login', array('label' => __('Checkout Method'), 'allow' => true));
     }
     parent::_construct();
 }
コード例 #2
0
ファイル: Billing.php プロジェクト: nja78/magento2
 /**
  * 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();
 }
コード例 #3
0
ファイル: Payment.php プロジェクト: shabbirvividads/magento2
 /**
  * @return void
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('payment', ['label' => __('Payment Information'), 'is_show' => $this->isShow()]);
     parent::_construct();
 }
コード例 #4
0
ファイル: Method.php プロジェクト: nja78/magento2
 /**
  * @return void
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('shipping_method', ['label' => __('Shipping Method'), 'is_show' => $this->isShow()]);
     parent::_construct();
 }
コード例 #5
0
ファイル: Review.php プロジェクト: aiesh/magento2
 /**
  * @return void
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('review', array('label' => __('Order Review'), 'is_show' => $this->isShow()));
     parent::_construct();
     $this->getQuote()->collectTotals()->save();
 }
コード例 #6
0
ファイル: Shipping.php プロジェクト: aiesh/magento2
 /**
  * Initialize shipping address step
  *
  * @return void
  */
 protected function _construct()
 {
     $this->getCheckout()->setStepData('shipping', array('label' => __('Shipping Information'), 'is_show' => $this->isShow()));
     parent::_construct();
 }