Magento Current Category Name and URL : Magento API is really wonderful . Current category is really important in product page and it is useful from A/B testing point of view . So if you want to add linkable current category in magento . Go to this location
app/design/frontend/base/default/template/catalog/product
and add following code before <div id=”messages_product_view”> here is sample code
<span><a href=”<?php echo Mage::registry(‘current_category’)->getUrl() ?>”> <?php echo Mage::registry(‘current_category’)->getName();?> </a> </span>
Be the first to comment.