瀏覽代碼

Merge branch 'develop'

master
Fab 2 年之前
父節點
當前提交
baa89b3823
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      Solver/Product/ProductFamilySolver.php

+ 2
- 2
Solver/Product/ProductFamilySolver.php 查看文件

@@ -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…
取消
儲存