fix translation

This commit is contained in:
O K
2025-06-08 15:40:24 +03:00
parent a35c8aa098
commit d258c6f5bf
11 changed files with 375 additions and 227 deletions

View File

@@ -45,9 +45,10 @@ class Hutko extends PaymentModule
{
$this->name = 'hutko';
$this->tab = 'payments_gateways';
$this->version = '1.3.0';
$this->version = '1.3.1';
$this->author = 'Hutko';
$this->bootstrap = true;
$this->need_instance = false;
parent::__construct();
$this->ps_versions_compliancy = array('min' => '1.7', 'max' => _PS_VERSION_);
//Do not translate displayName as it is used for payment identification
@@ -99,12 +100,12 @@ class Hutko extends PaymentModule
return true;
}
/**
* Load the configuration form
*/
public function getContent()
public function getContent(): string
{
/**
* If values have been submitted in the form, process.
@@ -121,7 +122,7 @@ class Hutko extends PaymentModule
}
}
return $err . $this->renderForm() . $this->context->smarty->fetch('module:hutko/views/templates/admin/help.tpl').$this->displayLastDayLog();
return $err . $this->renderForm() . $this->context->smarty->fetch('module:hutko/views/templates/admin/help.tpl') . $this->displayLastDayLog();
}
/**
@@ -582,7 +583,7 @@ class Hutko extends PaymentModule
if (Configuration::get('HUTKO_SHIPPING_INCLUDE') && $order->total_shipping_tax_incl > 0) {
$products[] = [
"id" => Configuration::get('HUTKO_SHIPPING_PRODUCT_CODE', null, null, null, '0_0_1'),
"name" => Configuration::get('HUTKO_SHIPPING_PRODUCT_NAME', null, null, null, 'Service Fee'),
"name" => Configuration::get('HUTKO_SHIPPING_PRODUCT_NAME', null, null, null, 'Package material'),
"price" => round((float)$order->total_shipping_tax_incl, 2),
"total_amount" => round((float) $order->total_shipping_tax_incl, 2),
"quantity" => 1,