Browse Source

Merge branch 'develop'

master
Fab 2 years ago
parent
commit
baa89b3823
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Solver/Product/ProductFamilySolver.php

+ 2
- 2
Solver/Product/ProductFamilySolver.php View File

} }




public function getProductCategoryChild(ProductFamilyInterface $productFamily)
public function getProductCategoryChild(ProductFamilyInterface $productFamily, SectionInterface $section)
{ {
$productCategories = $productFamily->getProductCategories(); $productCategories = $productFamily->getProductCategories();


foreach ($productCategories as $productCategory) { foreach ($productCategories as $productCategory) {
if ($productCategory->getParent()) {
if ($productCategory->getParent() && $productCategory->getSection() == $section) {
return $productCategory; return $productCategory;
} }
} }

Loading…
Cancel
Save