diff --git a/admin-dev/themes/default/template/controllers/products/quantities.tpl b/admin-dev/themes/default/template/controllers/products/quantities.tpl
index ab14688e6..1ae99c29d 100644
--- a/admin-dev/themes/default/template/controllers/products/quantities.tpl
+++ b/admin-dev/themes/default/template/controllers/products/quantities.tpl
@@ -109,6 +109,7 @@
{if isset($pack_quantity)}
|
+ {l s='When a product has combinations, quantities will be based on the default combination.'}
{l s='Given the quantities of the products in this pack, the maximum quantity should be: '} {$pack_quantity}
|
diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php
index 27ab8adc2..129178a24 100644
--- a/controllers/admin/AdminProductsController.php
+++ b/controllers/admin/AdminProductsController.php
@@ -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