// add 2 useful hooks

This commit is contained in:
Rémi Gaillard
2013-11-07 18:33:49 +01:00
parent f5c133f6e0
commit 855c8a8de4
2 changed files with 5 additions and 8 deletions
+4
View File
@@ -199,6 +199,10 @@ class CategoryControllerCore extends FrontController
// Pagination must be call after "getProducts"
$this->pagination($this->nbProducts);
Hook::exec('actionProductListModifier', array(
'nb_products' => &$this->nbProducts,
'cat_products' => &$this->cat_products,
));
foreach ($this->cat_products as &$product)
if ($product['id_product_attribute'] && isset($product['product_attribute_minimal_quantity']))