Follow by Email

Tuesday, December 13, 2011

I want to show two specific categories on all other category pages, so I wrote this in the end of /template/catalog/product/list.phtml

I used this code:
<?php echo Mage::getModel('catalog/layer')->getCurrentCategory()->getName(); ?>
<?php echo Mage::getModel('catalog/layer')->getCurrentCategory()->getId(); ?>

No comments:

Post a Comment