Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Magento PHP help! :)
05-05-2011, 01:29 AM #1
- Join Date
- May 2011
- Thanked 0 Times in 0 Posts
Magento PHP help! :)
I got to this and itís bringing up the getName but the getUrl() isnít returning any URL at all....
<?php $children = Mage::getModel('catalog/category')->getCategories(3); foreach ($children as $category): echo '<li><a href="' . $category->getUrl() . '">' . $category->getName() . '</a></li>'; endforeach; ?>Code:
<li><a href="">name of sub-cat</a></li>
Thanks in advance!