Magento get all products

后端 未结 6 906
故里飘歌
故里飘歌 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 21:48

    try using

    Mage::app()->setCurrentStore('0');
    // same as 
    Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
    

    this hepled me

提交回复
热议问题