|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / dev2.destoffenstraat.com / app / code / Bss / AdminEmailNotification / Helper / |
Filename | /home/dev2.destoffenstraat.com/app/code/Bss/AdminEmailNotification/Helper/Data.php |
Size | 9.76 kb |
Permission | rw-rw-r-- |
Owner | root : root |
Create time | 17-Aug-2025 10:26 |
Last modified | 15-May-2023 05:10 |
Last accessed | 22-Aug-2025 08:18 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
/**
* BSS Commerce Co.
*
* NOTICE OF LICENSE
*
* This source file is subject to the EULA
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://bsscommerce.com/Bss-Commerce-License.txt
*
* @category BSS
* @package Bss_AdminEmailNotification
* @author Extension Team
* @copyright Copyright (c) 2017-2018 BSS Commerce Co. ( http://bsscommerce.com )
* @license http://bsscommerce.com/Bss-Commerce-License.txt
*/
namespace Bss\AdminEmailNotification\Helper;
/**
* Class Data
*
* @package Bss\AdminEmailNotification\Helper
*/
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{
protected $previousStatus = [];
/**
* @return string
*/
public function getAdminEmailSender()
{
$emailSender = $this->scopeConfig->getValue(
'adminemailnotification/email_sender/admin_email_sender',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailSender;
}
/**
* @param null $storeId
* @return bool
*/
public function isEnableOrderEmail($storeId = null)
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/new_order/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderEmailTemplate($storeId = null)
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/new_order/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $emailTemplate;
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderEmailReceiver($storeId = null)
{
$orderEmailReceiver = $this->scopeConfig->getValue(
'adminemailnotification/new_order/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $orderEmailReceiver;
}
/**
* @return bool
*/
public function isEnableRegisterEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/new_register/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return mixed
*/
public function getRegisterEmailTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/new_register/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getRegisterEmailReceiver()
{
$registerEmailReceiver = $this->scopeConfig->getValue(
'adminemailnotification/new_register/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $registerEmailReceiver;
}
/**
* @return bool
*/
public function isEnableSubcribeEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/subcribe_newsletter/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return string
*/
public function getSubcribeEmailTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/subcribe_newsletter/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getSubcribeEmailReceiver()
{
$subcribeEmailReceiver = $this->scopeConfig->getValue(
'adminemailnotification/subcribe_newsletter/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $subcribeEmailReceiver;
}
/**
* @return bool
*/
public function isEnableUnsubcribeEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/unsubcribe_newsletter/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return string
*/
public function getUnsubcribeEmailTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/unsubcribe_newsletter/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getUnsubcribeEmailReceiver()
{
$unsubcribeEmailReceiver = $this->scopeConfig->getValue(
'adminemailnotification/unsubcribe_newsletter/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $unsubcribeEmailReceiver;
}
/**
* @param null $storeId
* @return bool
*/
public function isEnableStockQtyEmail($storeId = null)
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/low_stock/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
}
/**
* @param null $storeId
* @return mixed
*/
public function getQtyStock($storeId = null)
{
$stockQty = $this->scopeConfig->getValue(
'adminemailnotification/low_stock/stock_qty',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $stockQty;
}
/**
* @param null $storeId
* @return mixed
*/
public function getStockTemplate($storeId = null)
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/low_stock/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $emailTemplate;
}
/**
* @param null $storeId
* @return mixed
*/
public function getStockReceiver($storeId = null)
{
$stockReceiver = $this->scopeConfig->getValue(
'adminemailnotification/low_stock/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $stockReceiver;
}
/**
* @param null $storeId
* @return bool
*/
public function isEnableOrderStatusEmail($storeId = null)
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/order_status/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderStatus($storeId = null)
{
$orderStatus = $this->scopeConfig->getValue(
'adminemailnotification/order_status/status',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $orderStatus;
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderStatusTemplate($storeId = null)
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/order_status/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $emailTemplate;
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderStatusReceiver($storeId = null)
{
$orderStatusReceiver = $this->scopeConfig->getValue(
'adminemailnotification/order_status/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $orderStatusReceiver;
}
/**
* @return bool
*/
public function isEnableWishListEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/wishlist/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return string
*/
public function getWishListTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/wishlist/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getWishListReceiver()
{
$wishListReceiver = $this->scopeConfig->getValue(
'adminemailnotification/wishlist/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $wishListReceiver;
}
/**
* @return bool
*/
public function isEnableReviewEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/review/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return string
*/
public function getReviewTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/review/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getReviewReceiver()
{
$reviewReceiver = $this->scopeConfig->getValue(
'adminemailnotification/review/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $reviewReceiver;
}
public function setPreviousStatus($status)
{
$this->previousStatus = $status;
}
public function getPreviousStatus()
{
return $this->previousStatus;
}
}
/**
* BSS Commerce Co.
*
* NOTICE OF LICENSE
*
* This source file is subject to the EULA
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://bsscommerce.com/Bss-Commerce-License.txt
*
* @category BSS
* @package Bss_AdminEmailNotification
* @author Extension Team
* @copyright Copyright (c) 2017-2018 BSS Commerce Co. ( http://bsscommerce.com )
* @license http://bsscommerce.com/Bss-Commerce-License.txt
*/
namespace Bss\AdminEmailNotification\Helper;
/**
* Class Data
*
* @package Bss\AdminEmailNotification\Helper
*/
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{
protected $previousStatus = [];
/**
* @return string
*/
public function getAdminEmailSender()
{
$emailSender = $this->scopeConfig->getValue(
'adminemailnotification/email_sender/admin_email_sender',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailSender;
}
/**
* @param null $storeId
* @return bool
*/
public function isEnableOrderEmail($storeId = null)
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/new_order/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderEmailTemplate($storeId = null)
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/new_order/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $emailTemplate;
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderEmailReceiver($storeId = null)
{
$orderEmailReceiver = $this->scopeConfig->getValue(
'adminemailnotification/new_order/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $orderEmailReceiver;
}
/**
* @return bool
*/
public function isEnableRegisterEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/new_register/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return mixed
*/
public function getRegisterEmailTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/new_register/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getRegisterEmailReceiver()
{
$registerEmailReceiver = $this->scopeConfig->getValue(
'adminemailnotification/new_register/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $registerEmailReceiver;
}
/**
* @return bool
*/
public function isEnableSubcribeEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/subcribe_newsletter/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return string
*/
public function getSubcribeEmailTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/subcribe_newsletter/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getSubcribeEmailReceiver()
{
$subcribeEmailReceiver = $this->scopeConfig->getValue(
'adminemailnotification/subcribe_newsletter/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $subcribeEmailReceiver;
}
/**
* @return bool
*/
public function isEnableUnsubcribeEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/unsubcribe_newsletter/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return string
*/
public function getUnsubcribeEmailTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/unsubcribe_newsletter/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getUnsubcribeEmailReceiver()
{
$unsubcribeEmailReceiver = $this->scopeConfig->getValue(
'adminemailnotification/unsubcribe_newsletter/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $unsubcribeEmailReceiver;
}
/**
* @param null $storeId
* @return bool
*/
public function isEnableStockQtyEmail($storeId = null)
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/low_stock/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
}
/**
* @param null $storeId
* @return mixed
*/
public function getQtyStock($storeId = null)
{
$stockQty = $this->scopeConfig->getValue(
'adminemailnotification/low_stock/stock_qty',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $stockQty;
}
/**
* @param null $storeId
* @return mixed
*/
public function getStockTemplate($storeId = null)
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/low_stock/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $emailTemplate;
}
/**
* @param null $storeId
* @return mixed
*/
public function getStockReceiver($storeId = null)
{
$stockReceiver = $this->scopeConfig->getValue(
'adminemailnotification/low_stock/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $stockReceiver;
}
/**
* @param null $storeId
* @return bool
*/
public function isEnableOrderStatusEmail($storeId = null)
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/order_status/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderStatus($storeId = null)
{
$orderStatus = $this->scopeConfig->getValue(
'adminemailnotification/order_status/status',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $orderStatus;
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderStatusTemplate($storeId = null)
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/order_status/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $emailTemplate;
}
/**
* @param null $storeId
* @return mixed
*/
public function getOrderStatusReceiver($storeId = null)
{
$orderStatusReceiver = $this->scopeConfig->getValue(
'adminemailnotification/order_status/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
);
return $orderStatusReceiver;
}
/**
* @return bool
*/
public function isEnableWishListEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/wishlist/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return string
*/
public function getWishListTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/wishlist/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getWishListReceiver()
{
$wishListReceiver = $this->scopeConfig->getValue(
'adminemailnotification/wishlist/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $wishListReceiver;
}
/**
* @return bool
*/
public function isEnableReviewEmail()
{
return $this->scopeConfig->isSetFlag(
'adminemailnotification/review/enable_email',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
/**
* @return string
*/
public function getReviewTemplate()
{
$emailTemplate = $this->scopeConfig->getValue(
'adminemailnotification/review/admin_email_templates',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $emailTemplate;
}
/**
* @return string
*/
public function getReviewReceiver()
{
$reviewReceiver = $this->scopeConfig->getValue(
'adminemailnotification/review/admin_receiver',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
return $reviewReceiver;
}
public function setPreviousStatus($status)
{
$this->previousStatus = $status;
}
public function getPreviousStatus()
{
return $this->previousStatus;
}
}