/** * Send notification to admin about product low limit * * @return void */ protected function sendLowLimitNotification() { \XLite\Core\Mailer::sendLowLimitWarningAdmin($this->prepareDataForNotification()); }
/** * 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()); } }