Zen Cart Logo

columns per row

Locked

Views: 4,443

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
25 Mar 2009, 11:21 AM
#1
procella avatar

procella

New Zenner

Join Date:
Aug 2008
Posts:
97
Plugin Contributions:
0

columns per row

A problem that never gets really solved.. at one point I had in some places 2 columns per row. Now I dont have even if it is set in the admin. I would like to have 3 columns per row visible. And no, it is not my width that is wrong.
consernng:
New listing
categories
also purchased

I cant figure out what/where is wrong!

https://www.garudakauppa.fi

25 Mar 2009, 11:51 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: columns per row

On the contrary, this problem occurs regularly and is frequently resolved.

The first problem is that you have removed the float:left from the .back styling in your stylesheet. That's why all the products are displayed in a single column instead of floating up alongside each other.

If you put that back, you will be left with sometimes two, sometimes one, product per row. The reason for this is that you have added some horizontal padding to each of the boxes making them too wide to fit three to a row. Take that away and they'll be sitting neatly next to each other again.

25 Mar 2009, 1:11 PM
#3
procella avatar

procella

New Zenner

Join Date:
Aug 2008
Posts:
97
Plugin Contributions:
0

Re: columns per row

My have had this problem almost solved many times but never really as I would like to have. My stylesheet is a bit of a mess. I dont remember what I started from, and is a bit of a difficultie to clean.
I still seem to have some padding or something. Is it with the line under? I cant find it though.
here there is only one column
http://garudakauppa.fi/nettikauppa/index.php?main_page=index&cPath=18
when here there is two
http://garudakauppa.fi/nettikauppa/index.php?main_page=index&cPath=2

and nowhere three.

Thanks for the help

25 Mar 2009, 3:00 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: columns per row

At around about line 630 of your stylesheet you have styles for .categoryListBoxContents which include both margin and padding, both of which can contribute to your problem.

13 Sep 2009, 10:34 AM
#5
thuxen avatar

thuxen

New Zenner

Join Date:
Sep 2009
Posts:
15
Plugin Contributions:
0

Re: columns per row

I'm having the same problem with a new template I've installed.

You can see it on the main page here: http://www.turtlecontacts.com

Each 'Featured Product' takes up one row even though I have set "Index Listing -> Featured Products Columns per Row" to 3.

Can anyone advise me on how to fix this?

13 Sep 2009, 10:41 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: columns per row

@thuxen

Your template appears to have been designed to have one product per row and the inline CSS that sets the width of each product block is 100%, over-riding Zen Cart's internal calculation based on the columns per row setting that you changed.

As that is a commercial template and you will need to contact the support team at Template Monster to find out what they have done and whether it can be easily turned off.

13 Sep 2009, 11:25 AM
#7
thuxen avatar

thuxen

New Zenner

Join Date:
Sep 2009
Posts:
15
Plugin Contributions:
0

Re: columns per row

Wow, thank you for the super-fast reply!

12 Oct 2009, 3:21 AM
#8
robbinsgj avatar

robbinsgj

New Zenner

Join Date:
Jul 2009
Posts:
48
Plugin Contributions:
0

Re: columns per row

I have this same problem but when I check the css the float is there. Any other ideas?

12 Oct 2009, 12:11 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: columns per row

robbinsgj:

I have this same problem but when I check the css the float is there. Any other ideas?Not without seeing the site.

11 Nov 2009, 4:06 AM
#10
inkwizard avatar

inkwizard

New Zenner

Join Date:
Nov 2009
Posts:
1
Plugin Contributions:
0

Re: columns per row

I have been getting frustrated with this issue also .. I can get either one column per row on both the category listing and subcategory pages, or three columns on both pages ... however I want to get 3 columns wide on the first page and then only one column wide on the subcategory page.

Anyone who can help please have a look at https://www.inkwizard.net.au and check out "Canon" for a working subcategory page ... you will see how I want that to look but I need the front page to be 3 columns somehow?

Any help would be really appreciated!

11 Nov 2009, 5:31 AM
#11
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: columns per row

procella:

My have had this problem almost solved many times but never really as I would like to have. My stylesheet is a bit of a mess. I dont remember what I started from, and is a bit of a difficultie to clean.
I still seem to have some padding or something. Is it with the line under? I cant find it though.
here there is only one column
http://garudakauppa.fi/nettikauppa/index.php?main_page=index&cPath=18
when here there is two
http://garudakauppa.fi/nettikauppa/index.php?main_page=index&cPath=2

and nowhere three.

Thanks for the help

This is due to the padding in for each item. Set padding to 0 as follows:

.categoryListBoxContents {
padding: 0;
11 Nov 2009, 8:17 AM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: columns per row

InkWizard - What you want is not a fix for something broken, but a new feature.

Both of the pages you describe are category/subcategory listings, yet you want them to use different templates. That can be done; it will require some additional coding to distinguish the page involved and rework the column/row layout accordingly. It would be nice to use the per-page template override system, but both of the pages are named "index" so they can't be distingushed that way. You could make a copy of the alternate file for each category, but that would get very cumbersome to maintain.

The best way will probably be to insert the distinguishing and alternate layout code in
/includes/modules/your_template/category_row.php.