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.
我只需要迁移 我正在使用以下代码的活动产品来获取所有产品集合
Mage::getModel('catalog/product')->getCollection();
任何人都可以告诉我如何只过滤状态 = 启用的表单上面的代码
尝试
Mage::getModel('catalog/product')->getCollection()->addAttributeToFilter('status', 1)