Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Change category view layout. 
 
Jesse Stewart
Member
 
Avatar
Total Posts:  67
Joined:  2008-02-18
Salt Lake City, Utah
 

Ive tried everything I can think of.

I need to default category view to be a two column layout with the shopping cart and compare items on the left.
I have tried editing numerous xml files with numerous different things and nothing seems to change at all.

I was able to set the layout of an individual category through the admin, but i would rather change the default view to make it easier for future changes.

v1.0 is great! Thanks everyone at Varien and this community for making it the best ecommerce solution available, period.

Image Attachments
softwaremore_mockupbs.jpg
 Signature 

Jesse Stewart Creative
Graphic design and web.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jesse Stewart
Member
 
Avatar
Total Posts:  67
Joined:  2008-02-18
Salt Lake City, Utah
 

<catalog_category_default>
                <
reference name="root">
            <
action method="setTemplate"><template>page/2columns-left.phtml</template></action>
        </
reference>
        <
reference name="left">
            <
block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.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" />
            </
block>
        </
reference>
    </
catalog_category_default>

If i am correct, that should show only the left bar, but every category page still uses the 3 column layout.

 Signature 

Jesse Stewart Creative
Graphic design and web.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jesse Stewart
Member
 
Avatar
Total Posts:  67
Joined:  2008-02-18
Salt Lake City, Utah
 

It appears to be an issue with caching.

 Signature 

Jesse Stewart Creative
Graphic design and web.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jesse Stewart
Member
 
Avatar
Total Posts:  67
Joined:  2008-02-18
Salt Lake City, Utah
 

I love replying to my own topic.

I’ve been playing around and created more questions for myself then I have answered.

I can’t seem to get the shopping cart on the left side of the page in the category view. I was able to get it to be a 2 column layout and I was able to get compare products on the left. Shopping cart doesn’t want to budge.

 Signature 

Jesse Stewart Creative
Graphic design and web.

 
Magento Community Magento Community
Magento Community
Magento Community
 
andyellis_2000
Member
 
Total Posts:  41
Joined:  2008-02-15
 

I am glad you are enjoying your conversation with yourself. grin Just as a thought, you are familiar with the templates
\app\design\frontend\default\default\template\callouts\right_col.phtml
\app\design\frontend\default\default\template\callouts\left_col.phtml

I made some changes to mine via those pages, the customer service thing (which I made my own) is now on the left, and replaced the blackboaord with a random tips script
Maybe those pages will help you with what you are trying.  I suspect you can put the cart code into the let col phtml file, but not sure.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jesse Stewart
Member
 
Avatar
Total Posts:  67
Joined:  2008-02-18
Salt Lake City, Utah
 

This should be done with an xml file, but I can’t seem to get it right.

Also, what happened to main.xml?

 Signature 

Jesse Stewart Creative
Graphic design and web.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jesse Stewart
Member
 
Avatar
Total Posts:  67
Joined:  2008-02-18
Salt Lake City, Utah
 

looks like main.xml is depreciated.

Can anyone help me figure out how to move mini-cart to the left side.

Image Attachments
1083113131-Apple-Guards-Default-Store-View-Mozilla-Firefox[1].png
 Signature 

Jesse Stewart Creative
Graphic design and web.

 
Magento Community Magento Community
Magento Community
Magento Community
 
karynn
Member
 
Avatar
Total Posts:  69
Joined:  2008-02-07
 

Just posting an update, since I couldn’t find the answer on this page for changing the default page layout for all categories.

The file to update is \app\design\frontend\default\default\layout\page.xml —the reference to the template is right at the top.

Before:

<default>
        <
block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">

After:

<default>
        <
block type="page/html" name="root" output="toHtml" template="page/2columns-left.phtml">

To move the mini cart,
see the exercise on this page:
http://www.magentocommerce.com/design_guide/articles/intro-to-layouts

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
53269 users|835 users currently online|107362 forum posts