If there is no such file, copy from /app/design/frontend/base/default/template/checkout/cart/item/default.html.
Assume you created an attribute free_shipping which is a Yes/No field and you want to display an icon if the free_shipping is Yes.
$_item = $this->getItem();
$productId = $_item->getProductId();
$_product = Mage::getModel('catalog/product')->load($productId);
$freeShipping = $_product->getData('free_shipping');
Remaining task is just to add the if...then...else block to show the icon.
No comments:
Post a Comment