Hello,
Get categories list which are not include in Navigation in magento.
Some time you want that are not added in navigation but categories active and you want to
get or listing.
<ul class="full_category">
<?php $_categories = Mage::getResourceModel('catalog/category_collection')
->addAttributeToSelect('*')
->addAttributeToFilter('is_active', 1) //only active categories
->addAttributeToFilter('include_in_menu', 0)
->addAttributeToSort('position');//sort by position
foreach ($_categories as $_category) { ?>
<li class="cat">
<a href="<?php echo $_helper->getCategoryUrl($_category) ?>" title="<?php echo $_category->getName() ?>"><strong class="strongsm"><?php echo $_category->getName() ?></strong></a>
</li>
<?php }?>
</ul>
Get categories list which are not include in Navigation in magento.
Some time you want that are not added in navigation but categories active and you want to
get or listing.
<ul class="full_category">
<?php $_categories = Mage::getResourceModel('catalog/category_collection')
->addAttributeToSelect('*')
->addAttributeToFilter('is_active', 1) //only active categories
->addAttributeToFilter('include_in_menu', 0)
->addAttributeToSort('position');//sort by position
foreach ($_categories as $_category) { ?>
<li class="cat">
<a href="<?php echo $_helper->getCategoryUrl($_category) ?>" title="<?php echo $_category->getName() ?>"><strong class="strongsm"><?php echo $_category->getName() ?></strong></a>
</li>
<?php }?>
</ul>
Respeted Jaydipsinh,
ReplyDeleteRight now i am stuck with this problem Show Categories Which Are not Included in Navigation Menu
Categories are display in default and rwd but i want Categories display in my customized theme
please give step by step solution with details
and your blog is excellent helpful
reply soon (pdjani91@gmail.com)
Thanks