Back to Top

Magento Current Category Name and URL

Updated 9 October 2012

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>

Searching for an experienced
Magento Company ?
Find out More
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home