Solved

Magento - Display attribute filters in center column "col-main" on

Posted on 2010-09-20
5
1,338 Views
Last Modified: 2012-05-10
I would like to display the attribute filters in the center column, how would I accomplish this?

Here is an example:
http://www.carbonfiberhoods.com/exterior.html

I would like the "SHOP BY" filters displayed in the center css class of "col-main", I'm assuming I have to edit local.xml or something.  How do we do this?
0
Comment
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:miked2004
ID: 33725272
Hey That's an easy one.

In your themes layout folder find catalog.xml
All you need to do is move the reference to the catalog.lefnav block to the content block.

This is the original Below(Just a portion of the code)
<catalog_category_layered translate="label">
        <label>Catalog Category (Anchor)</label>
        <reference name="left">
            <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
        </reference>
        <reference name="content">
            <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
                    <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">





Here is the modified code.
<catalog_category_layered translate="label">
        <label>Catalog Category (Anchor)</label>
        <reference name="left">
            <!--  <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/> -->
        </reference>
        <reference name="content">
        	<block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
            <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">

Open in new window

0
 
LVL 12

Expert Comment

by:miked2004
ID: 33725279
Notice the new block in "<reference name="content">"
0
 

Author Comment

by:www_puertoricoautoforo_com
ID: 33729942
So I comment out the old line for the left column and added this in <content> in my catalog.xml

<block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>

Which seems to work great, visually it looks perfect,  but when I start filtering items I get errors..

Did you try navigating around with the menu in the center? (adding and removing filters?)
0
 

Author Comment

by:www_puertoricoautoforo_com
ID: 33729956
Do I need to edit this to get it to function properly?

app/design/frontend/base/default/template/catalog/layer/state.phtml
0
 
LVL 12

Accepted Solution

by:
miked2004 earned 500 total points
ID: 33730027
I did not try out the functionality. Let me look at it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
How important is it to take extra precautions to protect your online business? These are some steps you can take to make sure you're free of any cyber crime.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now