Magento get all products

后端 未结 6 851
故里飘歌
故里飘歌 2021-02-05 21:28

I am trying to get the entire magento product collection, without any filters or restrictions, but I fail to get all products.

I\'ve tried various methods already, but t

6条回答
  •  花落未央
    2021-02-05 22:11

    You might be using Flat Catalog Product Structure . This create separate table for each store view.

    Use Code below to print sql query . you will see the collection is coming from flat table like

    catalog_product_flat_38

    echo Mage::getModel('catalog/product')->getCollection()->getSelect();
    

提交回复
热议问题