Sfoglia il codice sorgente

Merge branch 'develop'

master
Fab 2 anni fa
parent
commit
baa89b3823
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      Solver/Product/ProductFamilySolver.php

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

@@ -191,12 +191,12 @@ class ProductFamilySolver
}


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

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

Loading…
Annulla
Salva