Example #1
0
 /**
  * Send notification to admin about product low limit
  *
  * @return void
  */
 protected function sendLowLimitNotification()
 {
     \XLite\Core\Mailer::sendLowLimitWarningAdmin($this->prepareDataForNotification());
 }
Example #2
0
 /**
  * Send notification to admin about product low limit
  *
  * @return void
  */
 protected function sendLowLimitNotification()
 {
     if (!\XLite::getInstance()->getController() instanceof \XLite\Controller\Admin\EventTask && \XLite\Core\Request::getInstance()->event !== 'import') {
         \XLite\Core\Mailer::sendLowLimitWarningAdmin($this->prepareDataForNotification());
     }
 }