2012-08-03 2 views

답변

0

참고 : 테스트하지 않습니다. 여기 팔목 외 활동은 거의 없습니다.

// ID of the category you wish to filter by 
$category_id = 35; 

// Instantiate a category model and load it 
$_category = Mage::getModel('catalog/category')->load($category_id); 

// Grab the wishlist collection 
$_wishlistCollection = Mage::helper('wishlist')->getWishlistItemCollection(); 

// Filter it by category as you would any normal collection 
$_wishlistCollection->addCategoryFilter($_category); 

그런 다음 정상적인 컬렉션 반복을 수행하십시오.

관련 문제