Oh snap! You are using an old version of browser. Update your browser to get new awesome features. Click for more details.

get the current URL and Name of category + Magento

Magneto registry make it easier to get the current category name and category url
The registry object we are interested in is ‘current_category’ and utilise the registry call getName() to create call to retrieve the needed information.

Category Name: Mage::registry('current_category')->getName();

Category URL: Mage::registry('current_category')->getUrl();

(0) comments