From 422b1b5218f62f4f7fb755dd80e689e0615bf5ca Mon Sep 17 00:00:00 2001 From: Dmitry Fedyuk Date: Mon, 30 Sep 2019 04:17:55 +0600 Subject: [PATCH] 1.3.4 --- composer.json | 2 +- view/frontend/requirejs-config.js | 21 +++++++++++++++++++++ view/frontend/web/payment-list.js | 19 +++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 view/frontend/requirejs-config.js create mode 100644 view/frontend/web/payment-list.js diff --git a/composer.json b/composer.json index 3a3a849..4c919b8 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/kassa-compleet" - ,"version": "1.3.3" + ,"version": "1.3.4" ,"description": "ING Kassa Compleet integration with Magento 2" ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/kassa-compleet" diff --git a/view/frontend/requirejs-config.js b/view/frontend/requirejs-config.js new file mode 100644 index 0000000..a988a3b --- /dev/null +++ b/view/frontend/requirejs-config.js @@ -0,0 +1,21 @@ +var config = {config: {mixins: { + /** + * 2019-09-30 + * Without this mixin, even the standard Magento 2.3.2 checkout + * does not show my payment methods on a first page load with an empty browser cache. + * Previously, I thought that the problem is only reproducible with third-party checkout modules. + * See my previous evidences of the issue: + * 1) «How to fix the bug of Aheadworks OneStepCheckout not showing a payment module + * on the frontend checkout screen?» https://mage2.pro/t/5616 + * 2) «Mageplaza One Step Checkout does not show Mage2.PRO payment methods on the frontend checkout screen»: + * https://github.com/mage2pro/core/issues/78 + * 3) «Mageplaza One Step Checkout does not show the Stripe module on the frontend checkout screen»: + * https://github.com/mage2pro/stripe/issues/65 + * 4) «Make the Vantiv payment module compatible with a custom checkout module»: + * https://github.com/mage2pro/vantiv/issues/3 + * 5) «Mageplaza One Step Checkout does not show the Dragonpay payment option to anonymous visitors + * on the frontend checkout screen's initial load»: + * https://github.com/mage2pro/dragonpay/issues/5 + */ + 'Magento_Checkout/js/view/payment/list': {'Dfe_KassaCompleet/payment-list': true} +}}}; \ No newline at end of file diff --git a/view/frontend/web/payment-list.js b/view/frontend/web/payment-list.js new file mode 100644 index 0000000..f67fe74 --- /dev/null +++ b/view/frontend/web/payment-list.js @@ -0,0 +1,19 @@ +/** + * 2019-09-30 + * Without this mixin, even the standard Magento 2.3.2 checkout + * does not show my payment methods on a first page load with an empty browser cache. + * Previously, I thought that the problem is only reproducible with third-party checkout modules. + * See my previous evidences of the issue: + * 1) «How to fix the bug of Aheadworks OneStepCheckout not showing a payment module + * on the frontend checkout screen?» https://mage2.pro/t/5616 + * 2) «Mageplaza One Step Checkout does not show Mage2.PRO payment methods on the frontend checkout screen»: + * https://github.com/mage2pro/core/issues/78 + * 3) «Mageplaza One Step Checkout does not show the Stripe module on the frontend checkout screen»: + * https://github.com/mage2pro/stripe/issues/65 + * 4) «Make the Vantiv payment module compatible with a custom checkout module»: + * https://github.com/mage2pro/vantiv/issues/3 + * 5) «Mageplaza One Step Checkout does not show the Dragonpay payment option to anonymous visitors + * on the frontend checkout screen's initial load»: + * https://github.com/mage2pro/dragonpay/issues/5 + */ +define(['Dfe_KassaCompleet/loader'], function() {return function(sb) {return sb;};}); \ No newline at end of file