Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道我可以获得产品收藏
$collection = Mage::getResourceModel('catalog/product_collection');.
$collection = Mage::getResourceModel('catalog/product_collection');
如何使用 categoryId 及其过滤器过滤此产品集合?
我说的过滤器是当我们点击分层导航侧边栏(属性选项..)时的过滤器。
您可以->addCategoryFilter(Mage::registry('current_category'));在您的收藏中使用(检查您在此之前是否有 current_cateogry)
->addCategoryFilter(Mage::registry('current_category'));