[-] BO : fix #PSCFV-2517 : Import combinaison, now the minimal quantity is not the quantity in ps_product_attribute
This commit is contained in:
@@ -1512,6 +1512,8 @@ class AdminImportControllerCore extends AdminController
|
|||||||
else
|
else
|
||||||
$id_shop_list[] = $shop;
|
$id_shop_list[] = $shop;
|
||||||
|
|
||||||
|
$info['minimal_quantity'] = isset($info['minimal_quantity']) && $info['minimal_quantity'] ? (int)$info['minimal_quantity'] : 1;
|
||||||
|
|
||||||
// if a reference is specified for this product, get the associate id_product_attribute to UPDATE
|
// if a reference is specified for this product, get the associate id_product_attribute to UPDATE
|
||||||
if (isset($info['reference']) && !empty($info['reference']))
|
if (isset($info['reference']) && !empty($info['reference']))
|
||||||
{
|
{
|
||||||
@@ -1539,7 +1541,7 @@ class AdminImportControllerCore extends AdminController
|
|||||||
(int)$info['default_on'],
|
(int)$info['default_on'],
|
||||||
0,
|
0,
|
||||||
strval($info['upc']),
|
strval($info['upc']),
|
||||||
(int)$info['quantity'],
|
(int)$info['minimal_quantity'],
|
||||||
0,
|
0,
|
||||||
null,
|
null,
|
||||||
$id_shop_list
|
$id_shop_list
|
||||||
@@ -1565,7 +1567,7 @@ class AdminImportControllerCore extends AdminController
|
|||||||
(int)$info['default_on'],
|
(int)$info['default_on'],
|
||||||
0,
|
0,
|
||||||
strval($info['upc']),
|
strval($info['upc']),
|
||||||
(int)$info['quantity'],
|
(int)$info['minimal_quantity'],
|
||||||
$id_shop_list
|
$id_shop_list
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user