0 votes
1.2k views
in Magento by
How do we get the current category/product/cms page in Magento?

1 Answer

0 votes
by
Hey Shoot this...

<?php
$currentCategory = Mage::registry('current_category');
$currentProduct = Mage::registry('current_product');
$currentCmsPage = Mage::registry('cms_page');
?>

Related questions

0 votes
1 answer 1.2k views
asked Jun 29, 2016 in Magento by Akshay Raj
+1 vote
1 answer 1.7k views
0 votes
2 answers 1.5k views
0 votes
1 answer 1.3k views
0 votes
1 answer 1.1k views
asked Jun 13, 2016 in Magento by Don
0 votes
1 answer 1.4k views
...