cancel
Showing results for 
Search instead for 
Did you mean: 

add callouts and other items below layered navigation and above recently viewed products

add callouts and other items below layered navigation and above recently viewed products

Hello,

 

I want to customize my products sidebar. As the title states I would like to insert items in between my layered navigation menu and the recently viewed products. Is there an admin function for this or do I need to edit the source files, and if yes, what files.

3 REPLIES 3

Re: add callouts and other items below layered navigation and above recently viewed products

You can able to position your custom block through magento layout

 

You can use following code to position

after="catalog.leftnav" before="right.reports.product.viewed"

 

For the eg::

 

(01) For Category Page

1) If it's is CMS Static block

<catalog_category_layered translate="label">
<!--For Web-->
<reference name="left_first">
<block type="cms/block" name="custom.block" after="catalog.leftnav" before="right.reports.product.viewed" >
<action method="setBlockId"><block_id>BLOCK-ID</block_id></action>
</block>
</reference>
<!--For Mobile-->
<reference name="left">
<block type="cms/block" name="custom.block" after="catalog.leftnav" before="right.reports.product.viewed" >
<action method="setBlockId"><block_id>BLOCK-ID</block_id></action>
</block>
</reference>
</catalog_category_layered>

 

2) If it's is Custom template file

<catalog_category_layered translate="label">
<!--For Web-->
<reference name="left_first">
<block type="core/template" name="custom.block" after="catalog.leftnav" before="right.reports.product.viewed" template="TEMPLATE-PATH"/>
</reference>
<!--For Mobile-->
<reference name="left">
<block type="core/template" name="custom.block" after="catalog.leftnav" before="right.reports.product.viewed" template="TEMPLATE-PATH"/>
</reference>
</catalog_category_layered>

 

(02) For Search Result Page

1) If it's is CMS Static block

<catalogsearch_result_index translate="label">
<!--For Web-->
<reference name="left_first">
<block type="cms/block" name="custom.block" after="catalogsearch.leftnav" before="right.reports.product.viewed" >
<action method="setBlockId"><block_id>BLOCK-ID</block_id></action>
</block>
</reference>
<!--For Mobile-->
<reference name="left">
<block type="cms/block" name="custom.block" after="catalogsearch.leftnav" before="right.reports.product.viewed" >
<action method="setBlockId"><block_id>BLOCK-ID</block_id></action>
</block>
</reference>
</catalogsearch_result_index>

 

2) If it's is Custom template file

<catalogsearch_result_index translate="label">
<!--For Web-->
<reference name="left_first">
<block type="core/template" name="custom.block" after="catalogsearch.leftnav" before="right.reports.product.viewed" template="TEMPLATE-PATH"/>
</reference>
<!--For Mobile-->
<reference name="left">
<block type="core/template" name="custom.block" after="catalogsearch.leftnav" before="right.reports.product.viewed" template="TEMPLATE-PATH"/>
</reference>
</catalogsearch_result_index>

 

 

 

 

 

Re: add callouts and other items below layered navigation and above recently viewed products

Hello,

 

Thank you for responding, where do I add this code exactly?

Re: add callouts and other items below layered navigation and above recently viewed products

You have to add this code with in a local.xml file (It's available under the your theme) 

 

If you doesn't have that file. Please follow following steps

 

1) Create local.xml file under your theme

app\design\frontend\Package\Your theme\layout\local.xml

 

2) Right click and open local.xml file using your texteditor(Notepad, Notepad++, etc...)

 

3) Paste your code with in a layout handler

 

<?xml version="1.0" encoding="UTF-8"?>
<layout>

     <!-- ENTER YOUR CODE -->

</layout>