Creating and calling custom attribute if textbox or textarea
getAttributeName() ?>if dropdown
getAttributeText('shirt_size') ?>
Calling Page Title Anywhere in the PHTML
getBlock('head')->getTitle(); ?>
Display Category Product in Product View
getProduct()->getCategory() ? $this->getProduct()->getCategory()->getName() : 'no category') ?>
Display Short Description
load($_item->getProductId()); echo $custom->getShortDescription(); ?>
Display Grandtotal
formatPrice(Mage::getSingleton('checkout/cart')->getQuote()->getGrandTotal()); ?>
0 comments:
Post a Comment
Speak my Friend