54 private $notifications = [];
71 $this->notifications = $notifications;
82 return md5(
'TAX_NOTIFICATION');
90 foreach ($this->notifications as $notification) {
91 if ($notification->isDisplayed()) {
103 $messageDetails =
'';
105 foreach ($this->notifications as $notification) {
106 $messageDetails .= $notification->getText();
109 $messageDetails .=
'<p>';
110 $messageDetails .=
__(
'Please see <a href="%1">documentation</a> for more details. ', $this->
getInfoUrl());
111 $messageDetails .=
__(
112 'Click here to go to <a href="%1">Tax Configuration</a> and change your settings.',
115 $messageDetails .=
'</p>';
117 return $messageDetails;
138 return $this->taxConfig->getInfoUrl();
148 return $this->urlBuilder->getUrl(
'adminhtml/system_config/edit/section/tax');
170 && !$this->taxConfig->displayCartPricesBoth(
$store)
171 && !$this->taxConfig->displayCartSubtotalBoth(
$store)
172 && !$this->taxConfig->displayCartShippingBoth(
$store)
173 && !$this->taxConfig->displaySalesPricesBoth(
$store)
174 && !$this->taxConfig->displaySalesSubtotalBoth(
$store)
175 && !$this->taxConfig->displaySalesShippingBoth(
$store);
192 return $this->taxConfig->applyTaxAfterDiscount(
$store);
204 return $this->urlBuilder->getUrl(
'tax/tax/ignoreTaxNotification', [
'section' => $section]);
218 $storeCollection = $this->storeManager->getStores(
true);
219 foreach ($storeCollection as
$store) {
222 $storeNames[] =
$website->getName() .
'(' .
$store->getName() .
')';
239 $storeCollection = $this->storeManager->getStores(
true);
240 foreach ($storeCollection as
$store) {
243 $storeNames[] =
$website->getName() .
'(' .
$store->getName() .
')';
$storesWithInvalidDiscountSettings
checkDiscountSettings($store=null)
getIgnoreTaxNotificationUrl($section)
__construct(\Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Tax\Model\Config $taxConfig, $notifications=[])
checkDisplaySettings($store=null)
getStoresWithWrongDiscountSettings()
$storesWithInvalidDisplaySettings
getStoresWithWrongDisplaySettings()