[-] MO : Tnt Carrier (1.2.1) - Small fix
This commit is contained in:
1 parent
0ef14bd5b5
commit
f92f287e30
2 files changed
+6
-6
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
<module>
|
<module>
|
||||||
<name>tntcarrier</name>
|
<name>tntcarrier</name>
|
||||||
<displayName><![CDATA[TNT Express]]></displayName>
|
<displayName><![CDATA[TNT Express]]></displayName>
|
||||||
<version><![CDATA[1.2]]></version>
|
<version><![CDATA[1.2.1]]></version>
|
||||||
<description><![CDATA[Offer your customers, different delivery methods with TNT]]></description>
|
<description><![CDATA[Offer your customers, different delivery methods with TNT]]></description>
|
||||||
<author><![CDATA[PrestaShop]]></author>
|
<author><![CDATA[PrestaShop]]></author>
|
||||||
<tab><![CDATA[shipping_logistics]]></tab>
|
<tab><![CDATA[shipping_logistics]]></tab>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class TntCarrier extends CarrierModule
|
|||||||
{
|
{
|
||||||
$this->name = 'tntcarrier';
|
$this->name = 'tntcarrier';
|
||||||
$this->tab = 'shipping_logistics';
|
$this->tab = 'shipping_logistics';
|
||||||
$this->version = '1.2';
|
$this->version = '1.2.1';
|
||||||
$this->author = 'PrestaShop';
|
$this->author = 'PrestaShop';
|
||||||
$this->limited_countries = array('fr');
|
$this->limited_countries = array('fr');
|
||||||
|
|
||||||
@@ -714,10 +714,10 @@ class TntCarrier extends CarrierModule
|
|||||||
$charge = Tools::getValue('tnt_carrier_'.$cat.'_charge');
|
$charge = Tools::getValue('tnt_carrier_'.$cat.'_charge');
|
||||||
|
|
||||||
Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'tnt_carrier_'.$cat.'`
|
Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'tnt_carrier_'.$cat.'`
|
||||||
SET `'.$cat.'_min` = "'.(float)($info_min).'",
|
SET `'.bqSQL($cat).'_min` = "'.(float)($info_min).'",
|
||||||
`'.$cat.'_max` = "'.(float)($info_max).'",
|
`'.bqSQL($cat).'_max` = "'.(float)($info_max).'",
|
||||||
`additionnal_charges` = "'.(float)$charge.'"
|
`additionnal_charges` = "'.(float)$charge.'"
|
||||||
WHERE `id_'.$cat.'` = '.(int)($id).'');
|
WHERE `id_'.bqSQL($cat).'` = '.(int)($id).'');
|
||||||
|
|
||||||
$this->_html .= $this->displayConfirmation($this->l('Service updated'));
|
$this->_html .= $this->displayConfirmation($this->l('Service updated'));
|
||||||
}
|
}
|
||||||
@@ -975,4 +975,4 @@ class TntCarrier extends CarrierModule
|
|||||||
$new = array("ST", " ");
|
$new = array("ST", " ");
|
||||||
return (str_replace($old, $new, $city));
|
return (str_replace($old, $new, $city));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user