There is a way to validate if the product exist or if it was created by product id
for example
$_prodId = $this->getProduct()->getId();
if (function_exists($_prodId)){
Thanks
There is a way to validate if the product exist or if it was created by product id
for example
$_prodId = $this->getProduct()->getId();
if (function_exists($_prodId)){
Thanks
You can validate as follows.
$_prodId = $this->getProduct()->getId();
$_product = Mage::getModel('catalog/product')->load($_prodId);
if($_product)
{
//product exists
}
else
{
//product doesn't exist
}