one of the magento’s hardest work is to customize its layout unlike the others such as joomla or wordpress that all the layout files of the templates are together

IN magento there are two types of fiels for creating the layout
one is XML and PHTML
the xml is used to address the css and javascript files tobe included in the theme and determine which of those phtml files are goind to be used
I wont dig deeper in this rather I will going to instruct you how to change the Category layout from the default 3 columns to 2 columns left or 2 columns right

navigate to

app/design/frontend/carpetnrugs/default/layout

there is a file catalog.xml
open it and look for

<catalog_category_layered>

and add this inside this block

<reference name="root">
            <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
        </reference>

The code should be changed from this:

<catalog_category_default>
        <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>

To this:

<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>

in my case it was like this but you may differ since I was using the emcomputer theme that is freely available for download on emthemes.com

<catalog_category_default translate="label">
        <label>Catalog Category (Non-Anchor)</label>
        <reference name="left">
            <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
        </reference>
        <remove name="right.cms_customize_right" />
        <remove name="right.tags_popular" />
        <remove name="right.permanent.callout" />
        <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 type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                        <block type="page/html_pager" name="product_list_toolbar_pager"/>
                        <!-- The following code shows how to set your own pager increments -->
                        <!--
                            <action method="setDefaultListPerPage"><limit>4</limit></action>
                            <action method="setDefaultGridPerPage"><limit>9</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
                            <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
                        -->
                    </block>
                   
                   
                    <action method="setColumnCount"><columns>4</columns></action>
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>

                    <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
                </block>
            </block>
        </reference>
         
    </catalog_category_default>
<catalog_category_default translate="label">
        <label>Catalog Category (Non-Anchor)</label>
       
        <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>
        <remove name="right.cms_customize_right" />
        <remove name="right.tags_popular" />
        <remove name="right.permanent.callout" />
        <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 type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                        <block type="page/html_pager" name="product_list_toolbar_pager"/>
                        <!-- The following code shows how to set your own pager increments -->
                        <!--
                            <action method="setDefaultListPerPage"><limit>4</limit></action>
                            <action method="setDefaultGridPerPage"><limit>9</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
                            <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
                        -->
                    </block>
                   
                   
                    <action method="setColumnCount"><columns>4</columns></action>
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>

                    <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
                </block>
            </block>
        </reference>
         
    </catalog_category_default>

one of the problems I had was that by edidting this file online using Cpanel file manager Editor some things would go wrong maybe some kinds of bits losts between
so I created the file localy and then uploaded the file to the directory

I hope this tutorial helped you

Thanks

Voshka Niknam

77 COMMENTS

  1. I’ve been searching for hours on this topic and finally found your post. bitcoincasino, I have read your post and I am very impressed. We prefer your opinion and will visit this site frequently to refer to your opinion. When would you like to visit my site?

  2. hello there and thank you for your info – I
    have definitely picked up something new from
    right here. I did however expertise several technical issues using
    this site, as I experienced to reload the web site a lot of times
    previous to I could get it to load properly.
    I had been wondering if your web hosting is
    OK? Not that I’m complaining, but sluggish loading instances
    times will sometimes affect your placement in google
    and could damage your quality score if ads and marketing with Adwords.
    Well I am adding this RSS to my email and could look out for much more of your respective interesting content.

    Make sure you update this again very soon.

    Stop by my blog post – Gresham truck Accident settlement

  3. I like the valuable information you provide in your articles.

    I will bookmark your blog and check again here frequently.
    I am quite certain I’ll learn a lot of new stuff right here!
    Good luck for the next!

    Also visit my page; lawyer

  4. Asking questions are in fact fastidious thing if you are not understanding something completely, however this article offers good understanding yet.

    Feel free to surf to my web blog trucking accident settlements (Lashonda)

  5. aid the body s natural hormones to function once more generic names for viagra Newer approaches would likely go beyond administering monotherapy tamoxifen as chemopreventive or adjuvant to accommodating rational multitherapy approaches in instances of predicted heightened tamoxifen therapy failure

  6. All groups Group 1 HCG- only Group 2 hCG plus LH- surge Group 3 LH- surge- only Group 4 All hCG sum of groups 1 and 2 Group 5 All LH- surge Sum of groups 2 and 3 No propecia generic name Although FGFRs are critical for lung development 12 16, homeostatic roles for FGFR signaling in postnatal lung in the absence of injury have not been demonstrated 11, 17

  7. Examples of low modularity networks include NDUFAF8, MRPL11, and PEX26, which are components of mitochondrial complex I, the mitochondrial ribosome, and the peroxisome Fig 3B and C obligate members of molecular machines which form large clusters in top down network analyses Boyle et al, 2018; Pan et al, 2018; Kim et al, 2019; Wainberg et al, 2019 Preprint tamoxifen sigma At 26 weeks, 44

  8. naturally like your web site but you need to
    check the spelling on several of your posts. A number of them are rife with spelling issues and I in finding
    it very troublesome to tell the reality on the other hand I will definitely
    come again again.

  9. In a 6 month double blind controlled study involving 44 patients of whom only 30 were analyzed, captopril significantly reduced LVMI and posterior wall and interventricular septal thicknesses compared with minoxidil, with similar levels of blood pressure control in both groups clomid for sale S 2 Bromo 1 3 bromophenyl ethanol 29

  10. Somebody essentially lend a hand to make seriously articles I might state. This is the first time I frequented your web page and so far? I surprised with the analysis you made to make this actual submit amazing. Wonderful task!
    Fantastic website.온라인카지노
    A lot of useful info here. I am sending it to a few buddies ans also sharing in delicious. And obviously, thank you for your effort!

  11. Incredible post. Articles that have significant and savvy remarks are more agreeable, at any rate to me.
    It’s fascinating to peruse what other individuals thought무료스포츠중계I really enjoyed your post.

  12. An interesting discussion is worth comment. I think that you should publish more about this topic, it may not be a
    taboo subject but typically people do not discuss such subjects.
    To the next! Cheers!!

LEAVE A REPLY

Please enter your comment!
Please enter your name here