From af1156e62c2fa744017095b543ef3cb4f9da3012 Mon Sep 17 00:00:00 2001 From: NickolasMalovanets <149711420+NickolasMalovanets@users.noreply.github.com> Date: Wed, 19 Jun 2024 13:03:57 +0300 Subject: [PATCH] Move the Payment booster view logic (#18) (#21) * Move the Payment booster view logic * Move the Payment booster view logic - update Life element options --------- Co-authored-by: pavel-bystritskyi <166638645+pavel-bystritskyi@users.noreply.github.com> Co-authored-by: Pavel Bystritsky Co-authored-by: MykolaMalovanets --- .../Field/Location/AddPayPalOptionPlugin.php | 32 +++++++++++++++++++ composer.json | 4 +-- etc/adminhtml/di.xml | 6 ++++ etc/adminhtml/system.xml | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 Plugin/Checkout/Block/System/Config/Form/Field/Location/AddPayPalOptionPlugin.php diff --git a/Plugin/Checkout/Block/System/Config/Form/Field/Location/AddPayPalOptionPlugin.php b/Plugin/Checkout/Block/System/Config/Form/Field/Location/AddPayPalOptionPlugin.php new file mode 100644 index 0000000..2e88ef6 --- /dev/null +++ b/Plugin/Checkout/Block/System/Config/Form/Field/Location/AddPayPalOptionPlugin.php @@ -0,0 +1,32 @@ + '(PayPal Checkout Flow only) On the additional information page', + 'value' => 'paypal_additional_information', + ], + ] + ); + } +} diff --git a/composer.json b/composer.json index f8111bc..b1a5024 100644 --- a/composer.json +++ b/composer.json @@ -5,9 +5,9 @@ "license": [ "MIT" ], - "version": "1.0.3", + "version": "1.1.0", "require": { - "bold-commerce/module-checkout": "^1.1.24", + "bold-commerce/module-checkout": "^2.0.0", "magento/framework": ">=102.0.1 <103.0.8", "magento/module-store": ">=101.0.1 <101.1.8" }, diff --git a/etc/adminhtml/di.xml b/etc/adminhtml/di.xml index 8dd558d..6f3e034 100644 --- a/etc/adminhtml/di.xml +++ b/etc/adminhtml/di.xml @@ -13,4 +13,10 @@ + + + diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 5295342..4377d93 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -4,7 +4,7 @@
- + Bold\CheckoutFlowPaypal\Block\System\Config\Form\Field\Disabled