Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to get productCollection on the Admin ? 
 
jaggsr
Member
 
Total Posts:  39
Joined:  2009-03-25
Ahmedabad, India
 

Hello

I need to get the catalog product in one of the custom module i have created on Admin.

I am doing these..
$_productCollection = Mage::getSingleton(’catalog/layer’)->getProductCollection().

But getting nothing..

Any help on this ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jaggsr
Member
 
Total Posts:  39
Joined:  2009-03-25
Ahmedabad, India
 

Hi tzyganu,

Thanks…

 
Magento Community Magento Community
Magento Community
Magento Community
 
jaggsr
Member
 
Total Posts:  39
Joined:  2009-03-25
Ahmedabad, India
 

Hi tzyganu,

Sorry..  this worked..
$_productCollection = Mage::getModel(’catalog/product’)->setStoreId(0)->getCollection()->addAttributeToSelect(’*’);

Thanks once again..

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top