Лучший Ответ axeld , 16 November 2015 - 10:51
Вот так должно сработать
$catIds = $item->getRelatedCategoryIds(); if ($primary = $item->getPrimaryCategory()) { $children = $primary->getChildren(); foreach ($children as $child) { if (in_array($child->id, $catIds)) { echo $child->name . ', '; } } }
Да круто, вcе работает !
Перейти к сообщению