Monday 20 January 2014

Magento: Get product details by ID



$product_id = 1; // pass your product id
$_product = Mage::getModel('catalog/product')->load($product_id);

//Below are some example to get product's basic information

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

//get short description
echo $_product->getShortDescription();

//get long description
echo $_product->getDescription();

//get price
echo $_product->getPrice();

//get special price
echo $_product->getSpecialPrice();

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

//get image Url
echo $_product->getImageUrl();


Hope this help!
Njoy!