/**
  * @return $this
  */
 protected function _prepareLayout()
 {
     if ($this->cartHelper->getItemsCount()) {
         $this->addQuoteMessages();
         $this->addMessages($this->messageManager->getMessages(true));
     }
     return parent::_prepareLayout();
 }
 /**
  * @return $this
  */
 protected function _prepareLayout()
 {
     if ($this->cartHelper->getItemsCount()) {
         $this->validateMinimunAmount();
         $this->addQuoteMessages();
         return parent::_prepareLayout();
     }
     return $this;
 }
Пример #3
0
 /**
  * Preparing global layout
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     /**
      * Check Item products existing
      */
     $productIds = [];
     foreach ($this->_getOrder()->getAllItems() as $item) {
         $productIds[] = $item->getProductId();
     }
     return parent::_prepareLayout();
 }
Пример #4
0
 /**
  * Preparing global layout
  *
  * @return void
  */
 protected function _prepareLayout()
 {
     $this->addMessages($this->messageManager->getMessages(true));
     parent::_prepareLayout();
 }