Home Magento Customization, Magento eCommerce

Get Product for a Specific Store in Magento

2 June 2009 One Comment

Here is the way to get product information for a specific store view in Magento.

<?php $product = Mage::getModel('catalog/product')->setStoreId(Mage::app()->getStore()->getId())->load($productId); ?>

And get product description:

<?php echo $this->helper('catalog/output')->productAttribute($product, nl2br($product->getDescription()), 'description'); ?>

Related posts:

  1. Changing Product Tabs from JavaScript to CSS
  2. Run Magento Code Outside of Magento
  3. Magento Menu Customization with Product List
  4. Some custom Blocks to help you show products
  5. Get product review info (independent) of review page

One Comment »

  • Hai NGUYEN said:

    This is great article. Thank Asia Connect!

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree

Security Code: