|
|
@@ -65,6 +65,13 @@ class ProductFamilyStore extends AbstractStore |
|
|
|
$productFamiliesArray = []; |
|
|
|
|
|
|
|
foreach ($parentCategory->getChildrens() as $i => $category) { |
|
|
|
//Essai d'alternative |
|
|
|
// foreach ($category->getProductFamilies() as $productFamily) { |
|
|
|
// if($productFamily->getStatus()==1) { |
|
|
|
// $productFamiliesArray[$productFamily->getId()] = $productFamily; |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
$productFamiliesCategory = $this->getByCategory($category); |
|
|
|
foreach ($productFamiliesCategory as $productFamily) { |
|
|
|
$productFamiliesArray[$productFamily->getId()] = $productFamily; |