From b49366dde2222a87c0ff0ad003af83176ebb8705 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Thu, 9 Jun 2016 12:43:52 +0200 Subject: [PATCH] ajout du wholesale_price dans import decli --- adm/tabs/AdminImport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adm/tabs/AdminImport.php b/adm/tabs/AdminImport.php index e48bc7c5..bc6c0f7b 100755 --- a/adm/tabs/AdminImport.php +++ b/adm/tabs/AdminImport.php @@ -973,7 +973,8 @@ class AdminImport extends AdminTab $this->_warnings[] = sprintf(Tools::displayError('No image found for combination with id_product = %s and image position = %s.'), $product->id, (int)$info['image_position']); } - $id_product_attribute = $product->addProductAttribute((float)($info['price']), (float)($info['weight']), 0, (float)($info['ecotax']), (int)($info['quantity']), $id_image, strval($info['reference']), strval($info['supplier_reference']), strval($info['ean13']), (int)($info['default_on']), strval($info['upc'])); + //$id_product_attribute = $product->addProductAttribute((float)($info['price']), (float)($info['weight']), 0, (float)($info['ecotax']), (int)($info['quantity']), $id_image, strval($info['reference']), strval($info['supplier_reference']), strval($info['ean13']), (int)($info['default_on']), strval($info['upc'])); + $id_product_attribute = $product->addCombinationEntity((float)($info['wholesale_price']), (float)($info['price']), (float)($info['weight']), 0, (float)($info['ecotax']), (int)($info['quantity']), $id_image, strval($info['reference']), strval($info['supplier_reference']), strval($info['ean13']), (int)($info['default_on']), strval($info['upc'])); foreach (explode($fsep, $info['options']) as $option) { list($group, $attribute) = array_map('trim', explode(':', $option));