// Improved stock management for packs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13789 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -3547,7 +3547,10 @@ class AdminProductsControllerCore extends AdminController
|
||||
foreach ($items as $item)
|
||||
{
|
||||
if (!$item->isAvailableWhenOutOfStock((int)$item->out_of_stock))
|
||||
$pack_quantities[] = Product::getQuantity($item->id) / ($item->pack_quantity !== 0 ? $item->pack_quantity : 1);
|
||||
{
|
||||
$pack_id_product_attribute = Product::getDefaultAttribute($item->id, 1);
|
||||
$pack_quantities[] = Product::getQuantity($item->id, $pack_id_product_attribute) / ($item->pack_quantity !== 0 ? $item->pack_quantity : 1);
|
||||
}
|
||||
}
|
||||
|
||||
// gets the minimum
|
||||
|
||||
Reference in New Issue
Block a user