Magento Themes and Magento Extensions

Magento: Load store specific product

Share

Different stores can be set in Magento. A product can be made visible in selected stores.

/**
* get store id
*/
$storeId = Mage::app()->getStore()->getId();
/**
* call the Magento catalog/product model
* set the current store ID
* load the product
*/
$product = Mage::getModel(‘catalog/product’)
->setStoreId($storeId)
->load($key);

Leave a Reply

You must be logged in to post a comment.