Product details from Product ID
<?php
$model
= Mage::getModel(
'catalog/product'
)
$_product
=
$model
->load(
$productid
);
echo
$_product
->getShortDescription();
echo
$_product
->getDescription();
echo
$_product
->getName();
echo
$_product
->getPrice();
echo
$_product
->getSpecialPrice();
echo
$_product
->getProductUrl();
echo
$_product
->getImageUrl();
echo
$_product
->getSmallImageUrl();
echo
$_product
->getThumbnailUrl();
?>
If you don’t have product id , you can get like this
<?php
$model
= Mage::getModel(
'catalog/product'
);
$collection
=
$model
->getCollection();
foreach
(
$collection
as
$product
)
{
echo
$product
->getId().
'<br/>'
;
}
?>
Hey! How can i get the storeID in which this product belongs to?
ReplyDeleteRetrieve Store Id as
ReplyDelete$_product->getStoreId();
And get all sotre ids where product is presented as
$_product->getStoreIds();
Thanks!
ReplyDeletethanks so much !
ReplyDeleteThanks!
ReplyDelete-- Magento Developer
@Bhoopendra Dwivedi Thanks for your comment.Thats saved lot of time to get product store id
ReplyDelete