Thursday, February 19, 2015

Show product description on cart page in Magento

app/design/frontend/my/default/template/checkout/cart/item/default.phtml

Solution 1:

<?php 
$_itemObj = Mage::getModel('catalog/product')->load($_item->getProductId());
echo $this->htmlEscape($_itemObj->getShortDescription());
?>

Solution 2:

<?php echo $this->htmlEscape( Mage::getModel('catalog/product')->load($_item->getProductId())->getShortDescription() ); ?>

No comments: