From d9d8fa3711339add47ae068f55b337d00bd197f2 Mon Sep 17 00:00:00 2001 From: Thomas Weyn Date: Tue, 12 Jun 2018 21:52:30 +0200 Subject: [PATCH 1/2] 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/2] 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];