Magento Forum

5 products per row not working after Category Custom Design list.phtml
 
Meez
Member
 
Total Posts:  70
Joined:  2010-05-31
 

On this page i am calling a ‘static-block’.

http://www.mariajobse.com/women.html

In that ‘static-block’ i am loading different Categories. Through my entire site i want to have 5 products per row.

The thing is on the Subcategories (Pouches, Clutches etc) its going good. I made some adjustment on catalog.xml:

I added this line

<action method="setColumnCount"><count>5</count></action>
see below:

<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"/>
            <
block type="cms/block" name="left-links"
                <
action method="setBlockId"><block_id>left-links</block_id></action>
            </
block>  
        </
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="setColumnCount"><count>5</count></action
                    <
action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
                    <
action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
                    <
action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
                    <
action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
                    <
action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
                    <
action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
                </
block>
            </
block>
        </
reference>
    </
catalog_category_default>

<!--
Category layered navigation layout
-->

    <
catalog_category_layered translate="label">
        <
label>Catalog Category (Anchor)</label>
        <
reference name="left">
            <
block type="catalog/layer_view" name="catalog.leftnav" after="vertnav" 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> -->
                    <
action method="setColumnCount"><count>5</count></action>
                    <
action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
                    <
action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
                    <
action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
                    <
action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
                    <
action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
                    <
action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
                </
block>
            </
block>
        </
reference>
    </
catalog_category_layered>

But when you click on Woman in this Category i am calling a different list.phtml look at the attachment (i don’t want the price and titel here) but on this page it still showing 3 products per row? How do i get 5 products per row here?

It looks like it’s not referring catalog.xml??

Thanks a lot.

Image Attachments
screenshot.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Enthusiast
 
Avatar
Total Posts:  811
Joined:  2011-07-03
 

Try to use the original list.phtml, is the problem still there?

 
Magento Community Magento Community
Magento Community
Magento Community
 
MakedonX
Jr. Member
 
Avatar
Total Posts:  25
Joined:  2012-03-12
 

Your problem is width of each product.
Try to decrease width and everything is fine smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Meez
Member
 
Total Posts:  70
Joined:  2010-05-31
 

no thats wrong. I fixet it.

I changed list.phtml:

<?php $_columnCount $this->getColumnCount(); ?>

to

<?php $_columnCount ;?>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top