Get Product Detail by product id in Magento



$model = Mage::getModel('catalog/product'); //getting product model

$_product = $model->load($pro_id); //getting product object for particular product id



echo $product = $_product->getid();  //Get Product Id

echo $_product->getShortDescription(); //product's short description

echo $_product->getDescription(); // product's long description

echo $_product->getName(); //product name

echo $_product->getPrice(); //product's regular Price

echo $_product->getSpecialPrice(); //product's special Price

echo $_product->getProductUrl(); //product url

echo $_product->getImageUrl(); //product's image url

Comments

Popular posts from this blog

Adding Contact us link to Top Menu in Magento

Credit card number for Testing payment methods

Currency converter in header in magento