0
나는 색 속성에 의해 필터링에 아래의 코드를 사용하고
에서 구성 제품의 색상 속성에 의해 필터하지만 포기는 하늘의 배열젠토 :: 젠토
$visibility = array(
Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
);
$cur_category=Mage::getModel('catalog/category')->load($cat_id);
$_productCollection= Mage::getModel('catalog/product')->setStoreId(Mage::app()->getStore()->getId())->getCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('visibility', $visibility);
$_productCollection->addAttributeToFilter('color', 146);
이