diff --git a/CHANGELOG.md b/CHANGELOG.md index d48e166b3..65958e440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v3.1.1 + +- hotfix: Pay now is broken if In-Page is disabled + ## v3.1.0 - feat: In-Page: Now we use the setForm in payment option and refactored to vanilla Javascript (we don't use Jquery anymore) diff --git a/alma/alma.php b/alma/alma.php index 59cbad2fe..10724f6c6 100644 --- a/alma/alma.php +++ b/alma/alma.php @@ -30,7 +30,7 @@ class Alma extends PaymentModule { - const VERSION = '3.1.0'; + const VERSION = '3.1.1'; public $_path; public $local_path; @@ -65,7 +65,7 @@ public function __construct() { $this->name = 'alma'; $this->tab = 'payments_gateways'; - $this->version = '3.1.0'; + $this->version = '3.1.1'; $this->author = 'Alma'; $this->need_instance = false; $this->bootstrap = true; diff --git a/alma/controllers/hook/PaymentOptionsHookController.php b/alma/controllers/hook/PaymentOptionsHookController.php index 2cd6b0d8c..bd778122b 100644 --- a/alma/controllers/hook/PaymentOptionsHookController.php +++ b/alma/controllers/hook/PaymentOptionsHookController.php @@ -142,7 +142,6 @@ public function run($params) if ($isPayNow) { $textPaymentButton = SettingsCustomFieldsHelper::getPayNowButtonTitleByLang($idLang); $descPaymentButton = SettingsCustomFieldsHelper::getPayNowButtonDescriptionByLang($idLang); - $isInPageEnabled = true; } $action = $this->context->link->getModuleLink( diff --git a/alma/views/templates/hook/_partials/feePlan.tpl b/alma/views/templates/hook/_partials/feePlan.tpl index e2366e91a..0ad0aea6f 100644 --- a/alma/views/templates/hook/_partials/feePlan.tpl +++ b/alma/views/templates/hook/_partials/feePlan.tpl @@ -27,7 +27,9 @@ {capture assign='total'}{l s='Total' mod='alma'}{/capture} {capture assign='firstAmount'}{almaFormatPrice cents=$plans[0].total_amount}{/capture} {capture assign='fees'}{almaFormatPrice cents=$plans[0].customer_fee}{/capture} -{capture assign='nextAmounts'}{almaFormatPrice cents=$plans[1].total_amount}{/capture} +{if $installmentsCount > 1} + {capture assign='nextAmounts'}{almaFormatPrice cents=$plans[1].total_amount}{/capture} +{/if} {if $oneLiner}