更新时间:2023-11-30 09:57:22
如果使用产品平面结构,则
If you use the product flat structure, then
$col = Mage::getModel('catalog/product')->getCollection();
将使用平面表(例如catalog_product_flat_1
),并且disabled
产品不属于该表.
will use the flat table (eg. catalog_product_flat_1
), and disabled
products are not part of that table.
将配置Use Flat Catalog Product
更改为"NO",您将拥有该集合中的所有产品:
Change the config Use Flat Catalog Product
to "NO" and you will have all products in the collection:
它将以这种方式加载所有产品.
It will load all products this way.