Magento获取与任何类别都不相关的产品列表 [英] Magento get a list of products that are not related to any category
本文介绍了Magento获取与任何类别都不相关的产品列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我能够按顺序列出子产品的类别列表,现在我需要添加与任何类别都不相关的产品列表
I was able to make an ordered list of categories with child products, now i need to add a list of products that are not related to any category
推荐答案
这应该给您您想要的东西:
This should give you what you want:
$collection = Mage::getModel('catalog/product')->getCollection()
->addAttributeToFilter('category_ids','');
这篇关于Magento获取与任何类别都不相关的产品列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文