B-219 Sec-55 Noida, India
+918010221733

How to call category list in footer in magento

<?php $helper = $this->helper(‘catalog/category’) ?>

<?php foreach ($helper->getStoreCategories() as $_category): ?>
<a href=”<?php echo Mage::getModel(‘catalog/category’)                                                                                                                                                                                                                                                                                            ->setData($_category->getData())->getUrl(); ?>” title=”<?php echo $_category->getName() ?>”>   <?php echo $_category->getName() ?></a>
<?php endforeach ?>

(Visited 35 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.