Forums / Templates, Stylesheets, Page Layout / switch product listings to a grid layout

switch product listings to a grid layout

Locked

Views: 13,746

Results 1 to 20 of 32
This thread is locked. New replies are disabled.
11 May 2006, 11:14 PM
#1
liquidlead avatar

liquidlead

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

switch product listings to a grid layout

I'm trying to customize my template...it's supposed to look like this: studiolaguna.com/portfolio/artists2.htm

Which file do I need to change to make a grid layout work? I'm running version 1.3. Also, any suggestions on what code changes need to be made?

I'm a bit of a newbie to zen...any help is greatly appreciated!!!:happy:

~ Liquid Lead Artist ~
https://www.liquidlead-art.com

12 May 2006, 1:39 AM
#2
desopolis avatar

desopolis

New Zenner

Join Date:
Feb 2006
Posts:
32
Plugin Contributions:
0

Re: switch product listings to a grid layout

first thing you have to do is make a new tempate file, then copy
includes/templates/template_default/common/tpl_main_page.php
to
includes/templates/your_temp/common/tpl_main_page.php
then open that bit of code up to see how Zen aranges information and the 3 box layout.
then also copy the header and footer files and look how they work.
then you will see where zen places information.
then you will need to build a 4 cell table(or CSS), as follows:

<!--body table -->
<table class="yourtableclass">
<TR><TD colspan="2" name="header">
Header code
</TD>
</TR>
<TR><TD name="leftnav">
Left bar content
</TD>
<TD name="body">
Body code
</TD>
</TR>
<TR><TD name="footer" colspan="2">
footer contet
</TD></TR></table>

obviously enter the php from tpl_main_page to the spots you want it and change widths and lengths.

tpl_default_left holds the information for the left bars(the layout and whatnot)
change those files as you like and you will start to see how easy it really is to change everything.

12 May 2006, 3:10 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: switch product listings to a grid layout

Desopolis' suggestion, while useful information, is not what you need specifically.

What you're after is the "column/grid layout" mod ... which will be accessible for download shortly once our contributions area comes back online.

Meanwhile, I've attached it here.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 May 2006, 5:26 AM
#4
stbede77 avatar

stbede77

Zen Follower

Join Date:
Apr 2006
Posts:
124
Plugin Contributions:
0

Re: switch product listings to a grid layout

Hey look everyone Doc is back... wondered where you were man

12 May 2006, 5:59 PM
#5
liquidlead avatar

liquidlead

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

Re: switch product listings to a grid layout

Thanks guys!

DrByte, I've copied the files from the column/grid system and followed the instructions provided, but now I'm just getting 1 column for all the pages. Is the grid system all CSS?

This is what it looks like after installing the grid layout:
http://www.studiolaguna.com/portfolio/productlistings.gif

I'm probably missing something obvious :huh: but I'm clueless as to knowing what i need to change.

thx,

~ Liquid Lead Artist ~
https://www.liquidlead-art.com

12 May 2006, 6:40 PM
#6
shopjackiesjewels avatar

shopjackiesjewels

Zen Follower

Join Date:
Apr 2006
Posts:
120
Plugin Contributions:
0

Re: switch product listings to a grid layout

are you wanting to have 3 or 4 columns instead of one??? is that your question?
if so all you do is go to admin/product listing/Product Listing - Columns Per Row and set how many ever columns you want.

12 May 2006, 6:54 PM
#7
liquidlead avatar

liquidlead

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

Re: switch product listings to a grid layout

yes, ultimately I want to have a 4x4 grid. I've tried controlling it through the admin with no success. I have it set to 4 right now, but changing it doesn't seem to make a difference. I've followed the instructions from the 'grid layout' a few times now, thinking it was some error I'd made...yet it's still not working. Any suggestions?

~ Liquid Lead Artist ~
https://www.liquidlead-art.com

12 May 2006, 6:57 PM
#8
shopjackiesjewels avatar

shopjackiesjewels

Zen Follower

Join Date:
Apr 2006
Posts:
120
Plugin Contributions:
0

Re: switch product listings to a grid layout

did you upload all the correct files in the right place and then go to tools/sql patches and copy and paste the code (provided in the download) there and hit send? when i did that. it worked perfectly and let me change the column numbers in the product layout place in admin

13 May 2006, 1:17 AM
#9
liquidlead avatar

liquidlead

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

Re: switch product listings to a grid layout

dang, i'm pullin my hair out trying to figure this out...has anyone else had this problem?
I followed the instructions step by step. Still no change. Do I need to add something to the stylesheet??? I've been using the ZenCss template as a base for my template...does anyone know if the grid layout is compatible with the zen css template?

~ Liquid Lead Artist ~
https://www.liquidlead-art.com

13 May 2006, 8:02 PM
#10
tim_b avatar

tim_b

New Zenner

Join Date:
Sep 2004
Location:
Coming soon to a location near you
Posts:
38
Plugin Contributions:
0

Re: switch product listings to a grid layout

liquidlead:

dang, i'm pullin my hair out trying to figure this out...has anyone else had this problem?
I followed the instructions step by step. Still no change. Do I need to add something to the stylesheet??? I've been using the ZenCss template as a base for my template...does anyone know if the grid layout is compatible with the zen css template?

I'm having the exact same problem. I've installed the mod as instructed, changed to 3 columns, but I still get 1 column. Something's not right.

***Edited

I found it. There's a second option I had to change from rows to columns.
Product Listing - Layout Style

Outside a dog, a book is a man's best friend.
Inside a dog, it's too dark to read.
Groucho Marx

13 May 2006, 11:09 PM
#11
cheekycockney avatar

cheekycockney

Zen Follower

Join Date:
Apr 2006
Posts:
172
Plugin Contributions:
0

Re: switch product listings to a grid layout

Hi. I'm looking for the same thing but I'm running 1.2.7 still. Would this work or is there an older version of the same thing?

14 May 2006, 10:18 PM
#12
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: switch product listings to a grid layout

I would like to get this working with the product description next to the product image and then have either the add to cart button or a link to full product detail underneath. How can I do this so I have 2 colums of product each colum having image with short description to the right?

Thanks in advance.

MG

15 May 2006, 2:59 AM
#13
redgorilla avatar

redgorilla

New Zenner

Join Date:
Apr 2006
Posts:
20
Plugin Contributions:
0

Re: switch product listings to a grid layout

I can give you a littile advice but not step-by-step instruction.

So you have center column width for example 400px so you need small images width set to less then center width / 4 for example 80. Then you need to edit template files so you will output your products to <div></div> not tables. Then you should set width of this div using css classes also less then center width / 4 for example 90 and set "float: left" property. So you should add some css classes to your style****.

That's all :-).

Cool Zen-cart Buttons - http://zencart.buttonsworkshop.com/

15 May 2006, 5:18 AM
#14
vera avatar

vera

New Zenner

Join Date:
Dec 2005
Location:
Wylie, Texas
Posts:
77
Plugin Contributions:
0

Re: switch product listings to a grid layout

CheekyCockney:

Hi. I'm looking for the same thing but I'm running 1.2.7 still. Would this work or is there an older version of the same thing?

Here you go.

My Portfolio

Life is a game. The plot sucks but the graphics are awesome.

15 May 2006, 9:32 AM
#15
cheekycockney avatar

cheekycockney

Zen Follower

Join Date:
Apr 2006
Posts:
172
Plugin Contributions:
0

Re: switch product listings to a grid layout

Vera of Texas, you are one cool bean.

15 May 2006, 6:03 PM
#16
liquidlead avatar

liquidlead

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

Re: switch product listings to a grid layout

Quote: > Originally posted by Tim_B:

I found it. There's a second option I had to change from rows to columns.
Product Listing - Layout Style
:no: I wish my problem were that simple. I don't have any clue on what the deal is...I'm thinkin I'll have to build a table, as suggested by Desopolis. Or does anyone else have any suggestions??? They'd be greatly appreciated!!!!

~ Liquid Lead Artist ~
https://www.liquidlead-art.com

15 May 2006, 6:21 PM
#17
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: switch product listings to a grid layout

You don't need to build a table you need a float: left in your stylesheet for the appropriate class.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

15 May 2006, 8:23 PM
#18
liquidlead avatar

liquidlead

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

Re: switch product listings to a grid layout

Originally Posted by Kim: You don't need to build a table you need a float: left in your stylesheet for the appropriate class.

It worked, Hallelujah!!! Thanks!
:smile:

~ Liquid Lead Artist ~
https://www.liquidlead-art.com

16 May 2006, 6:36 AM
#19
liquidlead avatar

liquidlead

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

Re: switch product listings to a grid layout

heh, one more question...
I finally got the grid system working, now how would I switch from a 2x4 grid to a 4x4 grid?

change from: to:



                           ****
                           ****

I think I'm slowly, very slowly, getting a hang of this Zen world :) Thanks everyone for your help!

~ Liquid Lead Artist ~
https://www.liquidlead-art.com

17 May 2006, 12:54 PM
#20
cheekycockney avatar

cheekycockney

Zen Follower

Join Date:
Apr 2006
Posts:
172
Plugin Contributions:
0

Re: switch product listings to a grid layout

This worked perfectly first time for me (1.2.7) but it looks a little off. Where I have long product names it messes up the alignment and things are not centered. Eg http://www.cotswood-doors.co.uk/catalog/external-doors-handcrafted-c-1_7_11.html Where are the tables generated so I can set them up to align properly? (Assuming this is the problem and it would even help)