Magento: how to echo metatitle in list.phtml -
i want echo content of metatitle under price of each products in grid view of list.phmtl file. used this:
echo $this->getlayout()->getblock('head')->gettitle();
but prints current page title under each product. want print product's page title under each product. trying this:
echo $_product->gettitle();
but no luck. suggestions?
thanks lot
you must use $_product->getmetatitle()
, , ensure meta_title
attribute used in product listing.
Comments
Post a Comment