Exemplo n.º 1
0
 /**
  * Provides general error information
  *
  * @return void
  */
 protected function _addGeneralError()
 {
     if (!$this->_hasError) {
         $this->_notifier->addMajor(__('Google Shopping Error'), $this->_gleShoppingCategory->getMessage());
         $this->_hasError = true;
     }
 }
Exemplo n.º 2
0
 /**
  * Check if synchronize process is finished and generate notification message
  *
  * @param  \Magento\Framework\Event\Observer $observer
  * @return $this
  */
 public function checkSynchronizationOperations(\Magento\Framework\Event\Observer $observer)
 {
     $this->_flag->loadSelf();
     if ($this->_flag->isExpired()) {
         $this->_notifier->addMajor(__('Google Shopping operation has expired.'), __('One or more google shopping synchronization operations failed because of timeout.'));
         $this->_flag->unlock();
     }
     return $this;
 }