diff --git a/ibanpro.php b/ibanpro.php index 4da76d8..ac92f64 100644 --- a/ibanpro.php +++ b/ibanpro.php @@ -277,6 +277,12 @@ class IbanPro extends PaymentModule // 5. If 'qrencode' is not found, assign the placeholder. $qr = $this->context->smarty->fetch($this->local_path . 'views/templates/front/emptyQR.svg'); } + if ($order->payment == $this->paymentMethodName) { + $this->context->smarty->assign([ + 'paymentMethodName' => 'ibanpro', + + ]); + } $this->context->smarty->assign([ 'reciever_name' => Configuration::get('IBANTRANSFER_RECEIVER_NAME'), 'iban' => Configuration::get('IBANTRANSFER_IBAN'), @@ -303,10 +309,10 @@ class IbanPro extends PaymentModule mb_convert_encoding('2', 'ASCII'), mb_convert_encoding('UCT', 'ASCII'), '', - mb_convert_encoding($this->reciever_name, 'windows-1251'), + mb_convert_encoding(Configuration::get('IBANTRANSFER_RECEIVER_NAME'), 'windows-1251'), mb_convert_encoding(Configuration::get('IBANTRANSFER_IBAN'), 'ASCII'), mb_convert_encoding($ibanSUM, 'ASCII'), - mb_convert_encoding($this->reciever_code, 'windows-1251'), + mb_convert_encoding(Configuration::get('IBANTRANSFER_RECEIVER_CODE'), 'windows-1251'), '', '', mb_convert_encoding($description, 'windows-1251'), @@ -338,6 +344,7 @@ class IbanPro extends PaymentModule public function hookPaymentOptions($params) { + if (!$this->active) { return; } diff --git a/views/templates/front/displayOrderConfirmation.tpl b/views/templates/front/displayOrderConfirmation.tpl index 5d1dedd..2879dc3 100644 --- a/views/templates/front/displayOrderConfirmation.tpl +++ b/views/templates/front/displayOrderConfirmation.tpl @@ -1,18 +1,22 @@ -
+
-
+
account_balance -
Реквізити для оплати замовлення
+
-
+
- +

Відскануйте QR-код у банківському додатку на телефоні. Усі реквізити та сума будуть заповнені автоматично.

@@ -60,7 +64,7 @@
-{*
+ {*
Посилання НБУ open_in_new @@ -140,33 +144,33 @@ {* --- CSS and JavaScript --- *} @@ -185,139 +189,139 @@ \ No newline at end of file