Thursday, October 15, 2015

get Product URL by Id

$product_id = 85;
$_product = Mage::getModel('catalog/product')->load($product_id);
$product_url = $_product->getProductUrl();

No comments:

Post a Comment

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method... magento 2

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method and must therefore be declared abstract or implement the remaining met...