i am working on multi store website. i want to show all Featured product from all store in main store. can we get Featured products from all store in magento ?
I guess you have some category or attribute that defines these 'featured products'. In that case we can retrieve the collection under scope 0 (admin scope) using emulation.
$appEmulation = Mage::getSingleton('core/app_emulation'); $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation(0); $collection = Mage::getModel('catalog/product')->getCollection() ->addAttributeToFilter('is_featured', 1) // or whatever you use to define featured products ->addAttributeToSelect('thumbnail') ->addAttributeToSelect('name') ->addAttributeToSelect('...'); $appEmulation->stopEnvironmentEmulation($initialEnvironmentInfo);
An important note, checking the stock and some other store level dependent will probably not work as expected. So although this is possible it could have some issues