Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / List items in rows of 3?

List items in rows of 3?

Locked

Views: 2,732

Results 1 to 20 of 30
This thread is locked. New replies are disabled.
20 Feb 2009, 8:53 AM
#1
lol_internet avatar

lol_internet

New Zenner

Join Date:
Feb 2009
Posts:
3
Plugin Contributions:
0

List items in rows of 3?

Hello everybody,

I'm attempting to list my items in rows of 3 instead of 1 item stacked on top of each other, with name and price under the image(just like the new products box). I just need to know what file creates the item list, and what would be the easiest method.

Thanks.

20 Feb 2009, 8:56 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: List items in rows of 3?

What you need is to install the Column Layout Grid mod from Free Addons. This is built to do what you want.

20 Feb 2009, 9:05 AM
#3
lol_internet avatar

lol_internet

New Zenner

Join Date:
Feb 2009
Posts:
3
Plugin Contributions:
0

Re: List items in rows of 3?

Wow, thank you. For some reason when I googled this, absolutely nothing turned up.

Mod can close this thread.

21 Feb 2009, 3:27 AM
#4
goldmarkpromo avatar

goldmarkpromo

New Zenner

Join Date:
Feb 2009
Posts:
18
Plugin Contributions:
0

Re: List items in rows of 3?

i'm trying to use the addon, but can't really figure it out. Can you help me a little. My site is https://www.microbelift.net
Thanks

21 Feb 2009, 4:11 AM
#5
goldmarkpromo avatar

goldmarkpromo

New Zenner

Join Date:
Feb 2009
Posts:
18
Plugin Contributions:
0

Re: List items in rows of 3?

Never mind my last post about this problem. I was able to figure it out.

23 Feb 2009, 1:20 PM
#6
pieter_cactus avatar

pieter_cactus

New Zenner

Join Date:
Feb 2009
Posts:
18
Plugin Contributions:
0

Re: List items in rows of 3?

Hi,
I just installed that Column Layout Grid for Product Listing mod. Seems to work fine in internet explorer, but Mozilla firefox (3.0.6) seems to have problems with the colums. Sometimes they are OK, but other times they are irregular, one product picture that's out of the line, some pictures are put side by side and then a big blank before the next picture.
Probably the generated code is not OK with all browser types. Or am I doing something wrong?

Pieter

23 Feb 2009, 3:53 PM
#7
hu2hu2 avatar

hu2hu2

New Zenner

Join Date:
Feb 2009
Posts:
7
Plugin Contributions:
0

Re: List items in rows of 3?

Hi I also have the same problem with the layout. Sometimes the product images are fine, other times they seem to be all over the place. Anyone know how to fix this problem?

24 Feb 2009, 4:52 PM
#8
pieter_cactus avatar

pieter_cactus

New Zenner

Join Date:
Feb 2009
Posts:
18
Plugin Contributions:
0

Re: List items in rows of 3?

Hi,
I just made a printscreen of the layout of my page:
http://www.cactaceae.be/forum/scherm.jpg
The lowest row is like it should be. Note the position of my items on the upper two rows. As well as the bold lettertype of the upper row. I have no idea what causes this.
Pieter

25 Feb 2009, 6:40 AM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: List items in rows of 3?

We can't be certain of the layout cause without seeing the site live. It may be that you have borders, margin or padding on the products that causes them to be wider than specified and not all fit in the space available.

The bold font is because the template file treats the first row of its display like a heading, even though it is not one in this case. Something like

.productListing-heading {font-weight: normal;}

in your stylesheet should take care of that.

25 Feb 2009, 7:35 AM
#10
pieter_cactus avatar

pieter_cactus

New Zenner

Join Date:
Feb 2009
Posts:
18
Plugin Contributions:
0

Re: List items in rows of 3?

Thank you so the problem probably lies in the stylesheet. I'll take a closer look to that.
My pages can be seen on http://www.cactaceae.be/roxpi

Regards,

Pieter

25 Feb 2009, 7:44 AM
#11
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: List items in rows of 3?

pieter_cactus:

My pages can be seen on http://www.cactaceae.be/roxpi

The problem is occurring because you haven't installed the mod correctly. Check that both of the mod's files have been uploaded into the correct override directory for your template.

Regards,
Christian.

25 Feb 2009, 8:35 AM
#12
gjh42 avatar

gjh42

Black Belt

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

Re: List items in rows of 3?

I am seeing the products displaying correctly, three per row (Firefox).

Adding this to your stylesheet will correct the "heading" font problem:

#productListing th {font-weight: normal;}

25 Feb 2009, 8:56 AM
#13
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: List items in rows of 3?

gjh42:

Adding this to your stylesheet will correct the "heading" font problem:

#productListing th {font-weight: normal;}

The point is, if the mod is installed correctly, it doesn't use tables. If the products are appearing in a table then one of the mod's files has not been installed correctly.

Regards,
Christian.

25 Feb 2009, 10:08 AM
#14
pieter_cactus avatar

pieter_cactus

New Zenner

Join Date:
Feb 2009
Posts:
18
Plugin Contributions:
0

Re: List items in rows of 3?

gjh42:

Adding this to your stylesheet will correct the "heading" font problem:

#productListing th {font-weight: normal;}

OK Thanks that's solved already :-)

Now the other thing. I will be checking all the installed files including their locations. But I thought I did it correctly. I'll keep you guys updated here.

25 Feb 2009, 10:29 AM
#15
pieter_cactus avatar

pieter_cactus

New Zenner

Join Date:
Feb 2009
Posts:
18
Plugin Contributions:
0

Re: List items in rows of 3?

CJPinder:

The point is, if the mod is installed correctly, it doesn't use tables. If the products are appearing in a table then one of the mod's files has not been installed correctly.

Regards,
Christian.

Perfect, in indeed had some file in the wrong location. I had the template file directly under my custom directory and not in the subdirectory templates. Thanks a million!

Pieter

25 Feb 2009, 11:13 AM
#16
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: List items in rows of 3?

pieter_cactus:

Perfect, in indeed had some file in the wrong location. I had the template file directly under my custom directory and not in the subdirectory templates. Thanks a million!

Cool. Glad you got it working.

Regards,
Christian.

25 Feb 2009, 5:11 PM
#17
gjh42 avatar

gjh42

Black Belt

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

Re: List items in rows of 3?

"if the mod is installed correctly, it doesn't use tables."

Right, forgot about that! I have seen the first-row font problem before, perhaps with a different mod, or perhaps they had the files messed up as well.

5 Mar 2009, 1:45 PM
#18
hu2hu2 avatar

hu2hu2

New Zenner

Join Date:
Feb 2009
Posts:
7
Plugin Contributions:
0

Re: List items in rows of 3?

Hi,

I am also having the same problem. I have a custom template which is placed in the "includes - templates - folders"

All I did was choose my custom template from within the admin section.

Is my custom template folder placed in the correct place, or should some files within the custom template folder be placed in different location (folders). The problem only happens in Firefox.

Your help is most appreciated.

6 Mar 2009, 6:18 PM
#19
rilken27 avatar

rilken27

New Zenner

Join Date:
Mar 2009
Posts:
43
Plugin Contributions:
0

Re: List items in rows of 3?

These instructions seemed very easy but when I view my products page my products have dissapeared. ???

Updated code files are included - so the task is simple.

  • Upload the new product_listing.php to ZEN_CART_HOME_DIR/includes/modules/YOURTEMPLATE/product_listing.php
    I uploaded this file to ZitaStore/includes/modules/classic

  • Upload the new tpl_modules_product_listing.php to:
    ZEN_CART_HOME_DIR/includes/templates/YOURTEMPLATE/templates/tpl_modules_product_listing.php

I uploaded this file to ZitaStore/includes/templates/classic/templates

Do I then remove the original files that were within
ZitaStore/includes/modules
and
ZitaStore/includes/templates/template_default

I just can't seem to get any mod to work for me today. :(

6 Mar 2009, 7:50 PM
#20
gjh42 avatar

gjh42

Black Belt

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

Re: List items in rows of 3?

You never want to touch the default/core files that came with Zen Cart. It sounds like you put the files in the right places (though you should have a custom template foldername instead of using /classic/, but that's another subject). We can't tell what's wrong without being in your server, though a corrupted file is possible. What did you use to upload the files? Have you tried re-uploading the files with fresh copies?