improve rendering

This commit is contained in:
O K
2025-11-15 12:29:48 +02:00
parent 1c12eac4f7
commit ff410dd79a
2 changed files with 154 additions and 143 deletions

View File

@@ -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;
}