diff --git a/Block/System/Config/Form/Field/ApiNote.php b/Block/System/Config/Form/Field/ApiNote.php deleted file mode 100644 index 2574572..0000000 --- a/Block/System/Config/Form/Field/ApiNote.php +++ /dev/null @@ -1,25 +0,0 @@ -setText($text); - - return parent::_renderValue($element); - } -} diff --git a/Block/System/Config/Form/Field/Note.php b/Block/System/Config/Form/Field/Note.php index e7dfee1..e925a23 100644 --- a/Block/System/Config/Form/Field/Note.php +++ b/Block/System/Config/Form/Field/Note.php @@ -17,7 +17,7 @@ class Note extends Field */ protected function _renderValue(AbstractElement $element) { - $text = __('Please set up a separate Bold Store for each Magento website.'); + $text = __('All settings can by found on the Website scope level.'); $element->setText($text); return parent::_renderValue($element); diff --git a/Observer/Checkout/CheckoutSectionSave.php b/Observer/Checkout/CheckoutSectionSave.php index 9036e8e..8d52df0 100644 --- a/Observer/Checkout/CheckoutSectionSave.php +++ b/Observer/Checkout/CheckoutSectionSave.php @@ -58,7 +58,7 @@ public function execute(Observer $observer): void { $event = $observer->getEvent(); $websiteId = (int)$event->getWebsite(); - if (!$this->config->isCheckoutEnabled($websiteId) || $websiteId === 0) { + if (!$this->config->isCheckoutEnabled($websiteId)) { return; } $this->config->setShopId($websiteId, null); diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 1291f24..6c3be9e 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -8,13 +8,13 @@ Bold\Checkout\Block\System\Config\Form\Field\Note - + Magento\Config\Model\Config\Source\Yesno documentation for more details.]]> - + Bold\Checkout\Model\Config\Source\CheckoutTypeSource - + Payment title that will be displayed on the checkout page. 2 - + Bold Checkout button title that will be displayed on the checkout page. @@ -47,22 +47,18 @@ Center. - - - Bold\Checkout\Block\System\Config\Form\Field\ApiNote - - Magento\Config\Model\Config\Source\Email\Identity - required-entry - required-entry @@ -77,7 +73,10 @@ - + + Bold\Checkout\Block\System\Config\Form\Field\Note + + Bold\Checkout\Block\System\Config\Form\Field\LifeElements Magento\Config\Model\Config\Backend\Serialized\ArraySerialized @@ -89,13 +88,16 @@ - + + Bold\Checkout\Block\System\Config\Form\Field\Note + + \Bold\Checkout\Model\Config\Source\EnabledForSource Configure Bold Checkout access limitations. Select 'All' to remove all limitations. - + 1 @@ -103,7 +105,7 @@ Only customers with listed IPs will be able to navigate to Bold Checkout. Please add whitelisted IPs separated by comma. - + 2 @@ -111,7 +113,7 @@ Only customers with listed emails will be able to navigate to Bold Checkout. Please add whitelisted Customer emails separated by comma. - + \Bold\Checkout\Model\Config\Source\PercentageSource @@ -120,22 +122,22 @@ Percentage of carts will be redirected to Bold Checkout. Please select the percentage of Orders to be placed using Bold Checkout. - + required-url M2 Platform Connector API URL. - + required-url - + required-url - + Magento\Config\Model\Config\Source\Yesno