From 7c992763983daa6781cd6df8a731358a4c4fbb4d Mon Sep 17 00:00:00 2001 From: woutse Date: Sat, 17 Jul 2021 17:56:34 +0200 Subject: [PATCH] Code polish --- .../controllers/front/payment.php | 4 +-- paynl_paymentmethods/paynl.css | 28 +++++++++---------- paynl_paymentmethods/paynl_paymentmethods.php | 8 +++--- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/paynl_paymentmethods/controllers/front/payment.php b/paynl_paymentmethods/controllers/front/payment.php index 9089fbc..c5bed05 100644 --- a/paynl_paymentmethods/controllers/front/payment.php +++ b/paynl_paymentmethods/controllers/front/payment.php @@ -211,10 +211,10 @@ public function initContent() $apiStart->setExtra1('CartId: ' . $cart->id); $apiStart->setObject('prestashop16 ' . $module->getVersion()); $apiStart->setOrderNumber($cart->id); - if($bank_id){ + if ($bank_id) { $apiStart->setPaymentOptionSubId($bank_id); } - + $apiStart->setPaymentOptionId($paymentOptionId); $finishUrl = Context::getContext()->link->getModuleLink('paynl_paymentmethods', 'return'); diff --git a/paynl_paymentmethods/paynl.css b/paynl_paymentmethods/paynl.css index 12cb635..3ff27e7 100644 --- a/paynl_paymentmethods/paynl.css +++ b/paynl_paymentmethods/paynl.css @@ -1,5 +1,5 @@ p.payment_module a.paynl_paymentmethod:after, -#showbanks_submenu a:after { +#showbanks_submenu a:after { color: #777777; content: ""; display: block; @@ -14,23 +14,23 @@ p.payment_module a.paynl_paymentmethod:after, } p.payment_module a.paynl_paymentmethod *, -p.payment_module a.paynl_paymentmethod{ +p.payment_module a.paynl_paymentmethod { padding: 3px; - padding-left: 10px; + padding-left: 10px; vertical-align: middle; cursor: pointer; } -p.payment_module a.paynl_paymentmethod label{ - margin-right:10px; +p.payment_module a.paynl_paymentmethod label { + margin-right: 10px; } -a.paynl_paymentmethod{ +a.paynl_paymentmethod { height: 85px; } -#showbanks_submenu a:after { - font-size:15px; +#showbanks_submenu a:after { + font-size: 15px; } #showbanks_submenu { @@ -46,27 +46,27 @@ a.paynl_paymentmethod{ padding: 5px; letter-spacing: -1px; position: relative; - background: #0000000d; + background: #0000000d; } -#showbanks_submenu_container{ +#showbanks_submenu_container { max-height: 0; -webkit-transition: max-height 1s; -o-transition: max-height .5s; transition: max-height 1s; overflow: hidden; - display: block; + display: block; } -#showbanks_submenu_container.active{ +#showbanks_submenu_container.active { max-height: 1000px; } p.payment_module a.paynl_paymentmethod.bank { height: auto; - padding: 7px; + padding: 7px; } p.payment_module a.paynl_paymentmethod.bank img { padding-right: 10px; -} \ No newline at end of file +} diff --git a/paynl_paymentmethods/paynl_paymentmethods.php b/paynl_paymentmethods/paynl_paymentmethods.php index 98d3694..021a86a 100644 --- a/paynl_paymentmethods/paynl_paymentmethods.php +++ b/paynl_paymentmethods/paynl_paymentmethods.php @@ -13,7 +13,7 @@ public function __construct() { $this->name = 'paynl_paymentmethods'; $this->tab = 'payments_gateways'; - $this->version = '3.5.8'; + $this->version = '3.6.0'; $this->_postErrors = array(); $this->module_key = '6c2f48f238008e8f68271f5e4763d308'; @@ -281,7 +281,7 @@ public function hookPayment($params) // Order remaining profiles based by order... asort($methodOrder); - $activeProfilesTemp = $activeProfiles; + $activeProfilesTemp = $activeProfiles; $ideal_banks = array(); $activeProfiles = array(); @@ -598,9 +598,9 @@ public function displayFormSettings() $osBanks = '