snipt

Ctrl+h for KB shortcuts

XML

Magento - Remove category filter

1
2
3
4
5
6
7
<?php //Add this to your local.xml - removes category filter from sideabar. ?>

<catalog_category_layered>
                <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
                 <action method="unsetChild"><child>category_filter</child></action>
                </block>
</catalog_category_layered>
https://snipt.net/embed/c512d85933e9117164da388572ee663f/
/raw/c512d85933e9117164da388572ee663f/
c512d85933e9117164da388572ee663f
xml
XML
7
2019-06-10T04:07:42
True
False
False
Nov 14, 2013 at 11:37 AM
/api/public/snipt/94171/
magento-remove-category-filter
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php //Add this to your local.xml - removes category filter from sideabar. ?&gt;</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nt">&lt;catalog_category_layered&gt;</span> </span><span id="L-4"><a name="L-4"></a> <span class="nt">&lt;block</span> <span class="na">type=</span><span class="s">&quot;catalog/layer_view&quot;</span> <span class="na">name=</span><span class="s">&quot;catalog.leftnav&quot;</span> <span class="na">after=</span><span class="s">&quot;currency&quot;</span> <span class="na">template=</span><span class="s">&quot;catalog/layer/view.phtml&quot;</span><span class="nt">&gt;</span> </span><span id="L-5"><a name="L-5"></a> <span class="nt">&lt;action</span> <span class="na">method=</span><span class="s">&quot;unsetChild&quot;</span><span class="nt">&gt;&lt;child&gt;</span>category_filter<span class="nt">&lt;/child&gt;&lt;/action&gt;</span> </span><span id="L-6"><a name="L-6"></a> <span class="nt">&lt;/block&gt;</span> </span><span id="L-7"><a name="L-7"></a><span class="nt">&lt;/catalog_category_layered&gt;</span> </span></pre></div> </td></tr></table>
"category filter", magento