[-] BO : Fix bug #PSCFV-5060 could not import supplier_combinations in combinations import
This commit is contained in:
+2
-2
@@ -1368,8 +1368,8 @@ class ProductCore extends ObjectModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
$product_supplier->product_supplier_reference = pSQL($supplier_reference);
|
$product_supplier->product_supplier_reference = pSQL($supplier_reference);
|
||||||
$product_supplier->product_supplier_price_te = (float)$price;
|
$product_supplier->product_supplier_price_te = (!is_null($price))? (float)$price : (float)$product_supplier->product_supplier_price_te;
|
||||||
$product_supplier->id_currency = (int)$id_currency;
|
$product_supplier->id_currency = (!is_null($id_currency))? (int)$id_currency : (int)$product_supplier->id_currency;
|
||||||
$product_supplier->save();
|
$product_supplier->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1787,8 +1787,9 @@ class AdminImportControllerCore extends AdminController
|
|||||||
null,
|
null,
|
||||||
$id_shop_list
|
$id_shop_list
|
||||||
);
|
);
|
||||||
|
|
||||||
$id_product_attribute_update = true;
|
$id_product_attribute_update = true;
|
||||||
|
if (isset($info['supplier_reference']) && !empty($info['supplier_reference']))
|
||||||
|
$product->addSupplierReference($product->id_supplier, $id_product_attribute, $info['supplier_reference']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1814,8 +1815,10 @@ class AdminImportControllerCore extends AdminController
|
|||||||
(int)$info['minimal_quantity'],
|
(int)$info['minimal_quantity'],
|
||||||
$id_shop_list
|
$id_shop_list
|
||||||
);
|
);
|
||||||
|
if (isset($info['supplier_reference']) && !empty($info['supplier_reference']))
|
||||||
|
$product->addSupplierReference($product->id_supplier, $id_product_attribute, $info['supplier_reference']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// fills our attributes array, in order to add the attributes to the product_attribute afterwards
|
// fills our attributes array, in order to add the attributes to the product_attribute afterwards
|
||||||
if(isset($attributes[$group.'_'.$attribute]))
|
if(isset($attributes[$group.'_'.$attribute]))
|
||||||
$attributes_to_add[] = (int)$attributes[$group.'_'.$attribute];
|
$attributes_to_add[] = (int)$attributes[$group.'_'.$attribute];
|
||||||
|
|||||||
Reference in New Issue
Block a user