$product = Mage::getModel('catalog/product')->load($productId);
get product data
($product->getProductAttributeCode;) or ($product->get attribute method;)
product id is always get through attribute method
$product->getId();
you can see product attribute code in admin->catalog->attributes->manage attributes
$product->get attribute method $product->getProductAttributeCode
|| ||
$product->getName(); or $product->name;
$product->getThumbnail(); or $product->thumbnail;
$product->getImage(); or $product->image;
.....
No comments:
Post a Comment