/** * @return void */ protected function _construct() { if (!$this->isCustomerLoggedIn()) { $this->getCheckout()->setStepData('login', array('label' => __('Checkout Method'), 'allow' => true)); } parent::_construct(); }
/** * 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(); }
/** * @param \Magento\Framework\View\Element\Template\Context $context * @param \Magento\Directory\Helper\Data $directoryHelper * @param \Magento\Framework\App\Cache\Type\Config $configCacheType * @param \Magento\Customer\Model\Session $customerSession * @param \Magento\Checkout\Model\Session $resourceSession * @param \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory * @param \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory * @param CustomerRepositoryInterface $customerRepository * @param AddressConfig $addressConfig * @param \Magento\Framework\App\Http\Context $httpContext * @param \Magento\Customer\Model\Address\Mapper $addressMapper * @param \Magento\Framework\Data\Form\FormKey $formKey * @param \Magento\Checkout\Model\CompositeConfigProvider $configProvider * @param LayoutProcessorInterface[] $layoutProcessors * @param array $data * @codeCoverageIgnore * @SuppressWarnings(PHPMD.ExcessiveParameterList) */ public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Framework\App\Cache\Type\Config $configCacheType, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $resourceSession, \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory, \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory, CustomerRepositoryInterface $customerRepository, AddressConfig $addressConfig, \Magento\Framework\App\Http\Context $httpContext, \Magento\Customer\Model\Address\Mapper $addressMapper, \Magento\Framework\Data\Form\FormKey $formKey, \Magento\Checkout\Model\CompositeConfigProvider $configProvider, array $layoutProcessors = [], array $data = []) { parent::__construct($context, $directoryHelper, $configCacheType, $customerSession, $resourceSession, $countryCollectionFactory, $regionCollectionFactory, $customerRepository, $addressConfig, $httpContext, $addressMapper, $data); $this->formKey = $formKey; $this->_isScopePrivate = true; $this->jsLayout = isset($data['jsLayout']) && is_array($data['jsLayout']) ? $data['jsLayout'] : []; $this->configProvider = $configProvider; $this->layoutProcessors = $layoutProcessors; }
/** * @param \Magento\Framework\View\Element\Template\Context $context * @param \Magento\Core\Helper\Data $coreData * @param \Magento\Framework\App\Cache\Type\Config $configCacheType * @param \Magento\Customer\Model\Session $customerSession * @param \Magento\Checkout\Model\Session $resourceSession * @param \Magento\Directory\Model\Resource\Country\CollectionFactory $countryCollectionFactory * @param \Magento\Directory\Model\Resource\Region\CollectionFactory $regionCollectionFactory * @param CustomerAccountService $customerAccountService * @param CustomerAddressService $customerAddressService * @param AddressConfig $addressConfig * @param \Magento\Framework\App\Http\Context $httpContext * @param \Magento\Tax\Helper\Data $taxData * @param array $data */ public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Core\Helper\Data $coreData, \Magento\Framework\App\Cache\Type\Config $configCacheType, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $resourceSession, \Magento\Directory\Model\Resource\Country\CollectionFactory $countryCollectionFactory, \Magento\Directory\Model\Resource\Region\CollectionFactory $regionCollectionFactory, CustomerAccountService $customerAccountService, CustomerAddressService $customerAddressService, AddressConfig $addressConfig, \Magento\Framework\App\Http\Context $httpContext, \Magento\Tax\Helper\Data $taxData, array $data = array()) { parent::__construct($context, $coreData, $configCacheType, $customerSession, $resourceSession, $countryCollectionFactory, $regionCollectionFactory, $customerAccountService, $customerAddressService, $addressConfig, $httpContext, $data); $this->_taxData = $taxData; }
/** * @return void */ protected function _construct() { $this->getCheckout()->setStepData('payment', ['label' => __('Payment Information'), 'is_show' => $this->isShow()]); parent::_construct(); }
/** * @param \Magento\Framework\View\Element\Template\Context $context * @param \Magento\Directory\Helper\Data $directoryHelper * @param \Magento\Framework\App\Cache\Type\Config $configCacheType * @param \Magento\Customer\Model\Session $customerSession * @param \Magento\Checkout\Model\Session $resourceSession * @param \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory * @param \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory * @param CustomerRepositoryInterface $customerRepository * @param AddressConfig $addressConfig * @param \Magento\Framework\App\Http\Context $httpContext * @param \Magento\Customer\Model\Address\Mapper $addressMapper * @param array $data * @SuppressWarnings(PHPMD.ExcessiveParameterList) */ public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Framework\App\Cache\Type\Config $configCacheType, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $resourceSession, \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory, \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory, CustomerRepositoryInterface $customerRepository, AddressConfig $addressConfig, \Magento\Framework\App\Http\Context $httpContext, \Magento\Customer\Model\Address\Mapper $addressMapper, array $data = []) { parent::__construct($context, $directoryHelper, $configCacheType, $customerSession, $resourceSession, $countryCollectionFactory, $regionCollectionFactory, $customerRepository, $addressConfig, $httpContext, $addressMapper, $data); $this->_isScopePrivate = true; }
/** * @return void */ protected function _construct() { $this->getCheckout()->setStepData('shipping_method', ['label' => __('Shipping Method'), 'is_show' => $this->isShow()]); parent::_construct(); }
/** * @return void */ protected function _construct() { $this->getCheckout()->setStepData('review', array('label' => __('Order Review'), 'is_show' => $this->isShow())); parent::_construct(); $this->getQuote()->collectTotals()->save(); }
/** * Initialize shipping address step * * @return void */ protected function _construct() { $this->getCheckout()->setStepData('shipping', array('label' => __('Shipping Information'), 'is_show' => $this->isShow())); parent::_construct(); }