[-] MO : Tnt Carrier (1.2.1) - Small fix

This commit is contained in:
fSerny
2011-11-23 09:13:25 +00:00
parent 0ef14bd5b5
commit f92f287e30
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<module>
<name>tntcarrier</name>
<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>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[shipping_logistics]]></tab>
+5 -5
View File
@@ -52,7 +52,7 @@ class TntCarrier extends CarrierModule
{
$this->name = 'tntcarrier';
$this->tab = 'shipping_logistics';
$this->version = '1.2';
$this->version = '1.2.1';
$this->author = 'PrestaShop';
$this->limited_countries = array('fr');
@@ -714,10 +714,10 @@ class TntCarrier extends CarrierModule
$charge = Tools::getValue('tnt_carrier_'.$cat.'_charge');
Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'tnt_carrier_'.$cat.'`
SET `'.$cat.'_min` = "'.(float)($info_min).'",
`'.$cat.'_max` = "'.(float)($info_max).'",
SET `'.bqSQL($cat).'_min` = "'.(float)($info_min).'",
`'.bqSQL($cat).'_max` = "'.(float)($info_max).'",
`additionnal_charges` = "'.(float)$charge.'"
WHERE `id_'.$cat.'` = '.(int)($id).'');
WHERE `id_'.bqSQL($cat).'` = '.(int)($id).'');
$this->_html .= $this->displayConfirmation($this->l('Service updated'));
}
@@ -975,4 +975,4 @@ class TntCarrier extends CarrierModule
$new = array("ST", " ");
return (str_replace($old, $new, $city));
}
}
}