From d9d8fa3711339add47ae068f55b337d00bd197f2 Mon Sep 17 00:00:00 2001 From: Thomas Weyn Date: Tue, 12 Jun 2018 21:52:30 +0200 Subject: [PATCH 1/3] Fixed problem with payment method availability check: the global setting was used instead of the store view setting --- Helper/General.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 Helper/General.php diff --git a/Helper/General.php b/Helper/General.php old mode 100644 new mode 100755 index 1dd3581dce7..54211fe4e62 --- a/Helper/General.php +++ b/Helper/General.php @@ -120,7 +120,7 @@ public function __construct( */ public function isAvailable($storeId) { - $active = $this->getStoreConfig(self::XML_PATH_MODULE_ACTIVE); + $active = $this->getStoreConfig(self::XML_PATH_MODULE_ACTIVE, $storeId); if (!$active) { return false; } From 3a14edf530de59d72350734053ca440a21b27056 Mon Sep 17 00:00:00 2001 From: Thomas Weyn Date: Wed, 13 Jun 2018 01:11:04 +0200 Subject: [PATCH 2/3] Bind iDeal selectedissuer to ko.observable to make sure readers are automatically informed when the user changes this. --- view/frontend/web/js/view/payment/method-renderer/ideal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 view/frontend/web/js/view/payment/method-renderer/ideal.js diff --git a/view/frontend/web/js/view/payment/method-renderer/ideal.js b/view/frontend/web/js/view/payment/method-renderer/ideal.js old mode 100644 new mode 100755 index b2d61a3e1e5..bbd6c029859 --- a/view/frontend/web/js/view/payment/method-renderer/ideal.js +++ b/view/frontend/web/js/view/payment/method-renderer/ideal.js @@ -11,7 +11,7 @@ define( { defaults: { template: 'Mollie_Payment/payment/ideal', - selectedIssuer: null + selectedIssuer: ko.observable() }, getIssuers: function () { return checkoutConfig.issuers[this.item.method]; From 4eec4f7d0547d4cfc8441da957be2d0cb020a105 Mon Sep 17 00:00:00 2001 From: Marvin-Magmodules Date: Wed, 13 Jun 2018 19:05:12 +0200 Subject: [PATCH 3/3] Version bump --- composer.json | 2 +- etc/module.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a31932eace9..a73d8aac342 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "mollie/magento2", "description": "Mollie Payment Module for Magento 2", - "version": "1.3.3", + "version": "1.3.4", "require": { "php": "~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0", "mollie/mollie-api-php": "^2.0" diff --git a/etc/module.xml b/etc/module.xml index c68729c7f89..ac99fe41aad 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,4 +1,4 @@ - +