*$parent_category* には N 個の子カテゴリがあります。*$excluded_child_category* に属するものを除いて、*$parent_category* からすべての製品を取得するにはどうすればよいですか?
親カテゴリを取得する方法は次のとおりです。
$collection = Mage::getModel( 'catalog/category' )->load( $parent_category_id )->getProductCollection();
*$parent_category* には N 個の子カテゴリがあります。*$excluded_child_category* に属するものを除いて、*$parent_category* からすべての製品を取得するにはどうすればよいですか?
親カテゴリを取得する方法は次のとおりです。
$collection = Mage::getModel( 'catalog/category' )->load( $parent_category_id )->getProductCollection();