// BugFix : Problem with delivery_option calculation

// @TODO : All the undefined index are now fixed but there is not all the available delivery option
This commit is contained in:
mDeflotte
2011-12-06 17:35:38 +00:00
parent f648fd222c
commit 9ccf35375e
3 changed files with 8 additions and 8 deletions
@@ -167,7 +167,7 @@ class AdminProductsControllerCore extends AdminController
$_POST['height'] = empty($_POST['height']) ? '0' : str_replace(',', '.', $_POST['height']);
$_POST['depth'] = empty($_POST['depth']) ? '0' : str_replace(',', '.', $_POST['depth']);
$_POST['weight'] = empty($_POST['weight']) ? '0' : str_replace(',', '.', $_POST['weight']);
if ($_POST['unit_price'] != null)
if (Tools::getIsset('unit_price') != null)
$object->unit_price = str_replace(',', '.', $_POST['unit_price']);
if (array_key_exists('ecotax', $_POST) && $_POST['ecotax'] != null)
$object->ecotax = str_replace(',', '.', $_POST['ecotax']);