Webkul
Services
Technologies Bagisto QloApps
iOS Android SAP BigCommerce Wix
Trusted by
Samsung Intel Toyota Walmart Disney Nokia Nestlé Decathlon
See all customers
Back to Top
DOC

Magento Current Category Name and URL

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>
. . .

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