Try the Demo

Magento Forum

   
Page 3 of 3
Remove Category option from Layered Navigation options list
 
Jubba
Sr. Member
 
Avatar
Total Posts:  82
Joined:  2009-05-07
London
 

Just in case this helps any one this works well on 1.4 \’Quick Product Finder\’ can be changed to what you would like could be \’Shop By\’

when you have replaced the view.phtml with the below just create the css required to style individual parts of the layered nav as you wish,
i.e .block-layered-nav .up_ddCategory { } or .block-layered-nav .up_dtCategory { }.

then if any item you wish to remove use the { display: none; } in your styles.css

you can see the result example

<?php if($this->canShowBlock()): ?>
<div class="block block-layered-nav">
    
    <
div class="block-content">
        
<?php echo $this->getStateHtml() ?>
        <?php 
if($this->canShowOptions()): ?>
            
<class="block-subtitle"><?php echo $this->__('Quick Product Finder'?><p>
            <
dl id="narrow-by-list">
                
<?php $_filters $this->getFilters() ?>
                <?php 
foreach ($_filters as $_filter): ?>
                <?php 
if($_filter->getItemsCount()): ?>
                <?php $__tcc
=$this->__($_filter->getName());?>
                    
<dt class="<?php echo "up_dt".$__tcc;?>">
                    
<?php echo $__tcc;?>
                    
</dt>                    
                   <
dd class="<?php echo "up_dd".$__tcc;?>">
                   
<?php echo $_filter->getHtml() ?>
                  
</dd
                
<?php endif; ?>
                <?php 
endforeach; ?>
            
</dl>
            <
script type="text/javascript">decorateDataList('narrow-by-list')<script>
        
<?php endif; ?>
    
</div>
</
div>
<?php endif; ?>

 Signature 

Brain surgery is probably easier than this......no one said it would be easy!
http://www.tapstore.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
jonas73
Sr. Member
 
Total Posts:  97
Joined:  2009-04-24
 

Non of the above works for me and even when i set to no anchor categories still show up. mage 1.3.24

Any help please!

 
Magento Community Magento Community
Magento Community
Magento Community
 
team_in_medias
Sr. Member
 
Avatar
Total Posts:  113
Joined:  2008-05-07
Aachen, Germany
 

<?php $this->unsetChild('category_filter'?>
<?php 
if($this->canShowBlock()): ?>

 Signature 

team in medias GmbH
Magento-Agentur in Hamburg und Aachen

 
Magento Community Magento Community
Magento Community
Magento Community
 
shangrilrao
Jr. Member
 
Total Posts:  7
Joined:  2010-10-14
 

I found this technique gives me more control overall.  For instance, on some categories, I might want to display Price while on others I don’t.

 Signature 

******

 
Magento Community Magento Community
Magento Community
Magento Community
 
elitriona
Sr. Member
 
Total Posts:  106
Joined:  2008-10-23
 

Is there any way to do this using custom layout update XML?

Say I want to hide the browse by categories but just in one particular category. Could I do this by updating the custom XML somehow?

 
Magento Community Magento Community
Magento Community
Magento Community
 
panticz.de
Jr. Member
 
Total Posts:  18
Joined:  2009-01-16
Germany
 

HI, you can easyly remove categories from Shop by navigation by add this to your local.xml:

<reference name="catalog.leftnav">
<action method="unsetChild"><alias>category_filter</alias></action>
</reference>

she a example here:
http://www.panticz.de/Magento-customized-Shop-by-Navigation

 Signature 

http://code.google.com/p/magja/ - Java Connector for Magento API
http://www.panticz.de/magento/ - Magento HowTo

 
Magento Community Magento Community
Magento Community
Magento Community
 
elitriona
Sr. Member
 
Total Posts:  106
Joined:  2008-10-23
 
panticz.de - 18 November 2010 03:26 AM

HI, you can easyly remove categories from Shop by navigation by add this to your local.xml:

<reference name="catalog.leftnav">
<action method="unsetChild"><alias>category_filter</alias></action>
</reference>

she a example here:
http://www.panticz.de/Magento-customized-Shop-by-Navigation

Thank you!!! That is exactly the solution I was hoping for! Perfectly simple smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 3 of 3