improve rendering
This commit is contained in:
11
ibanpro.php
11
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user