I need to get only the TAGS of the product that I am viewing in the product page meaning view.phtml
If I use this command
<?php echo $this->getChildHtml('product_additional_data') ?>
I get NOT only the tags but the whole information related of the product.
How can I break the product_additional_data to tags,reviews etc ???
What are the related commands for getting ONLY the tags or gettings ONLY the reviews?
解决方案
Hello add below code in view.phtml
// instantiate the tags class for products
$_tags = new Mage_Tag_Block_Product_List();
?>
<?php foreach($_tags->getTags() as $tag):?>
<?php echo $tag->getName()?>