2/15/2011

How to get all product details or product Id's with respect to individual or each store view in magento

To get all product Id's with respect to each store view, write the below code. $storeId    = Mage::app()->getStore()->getId();
$product    = Mage::getModel('catalog/product');
$products   = $product->getCollection()->addStoreFilter($storeId)->getData();
This will fetch all product details of current store. If u change store it will show different product

No comments:

Post a Comment