Forums / Templates, Stylesheets, Page Layout / styling product listing pages with column layout grid

styling product listing pages with column layout grid

Views: 50,719

Results 21 to 40 of 220
28 Sep 2008, 11:09 AM
#21
pazaz avatar

pazaz

New Zenner

Join Date:
May 2007
Posts:
47
Plugin Contributions:
0

styling product listing pages with column layout grid

Ive just tried the CSS version only on my 1.38a installation and I get a similar problem. It does show the page but ONLY 1 column (row) at a time and there are corruptions like it shows the last left side column sidebox text at the top of the product list page... weirdio.

:blink:

28 Sep 2008, 3:58 PM
#22
gjh42 avatar

gjh42

Black Belt

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

Re: styling product listing pages with column layout grid

That is really weird, and doesn't sound like something that the mod should be able to affect.
Can you post a link to your site? (If you still have the mod active.)

1 Dec 2008, 5:06 AM
#23
gjh42 avatar

gjh42

Black Belt

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

Re: styling product listing pages with column layout grid

I got the column version of the mod working in October, but hadn't posted an update yet. Here it is, for testing (v0.9.1).
As before, the readme is incomplete, so ask if you need help installing. There appears to be a bug in the "rows" setting which I haven't fixed yet, but the demo version works to put the price to the left of the add button, in a 3-column layout.

Please let me know how this works for you.

2 Dec 2008, 1:14 AM
#24
nyanko_chan avatar

nyanko_chan

New Zenner

Join Date:
Sep 2008
Posts:
40
Plugin Contributions:
0

Re: styling product listing pages with column layout grid

Hi, gjh42. Thank you for directing me to this mod.

After running SQL commands, below is what I got.

1062 Duplicate entry 'PRODUCT_LISTING_LAYOUT_STYLE' for key 2
in:
[INSERT INTO zen_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Product Listing - Layout Style', 'PRODUCT_LISTING_LAYOUT_STYLE', 'rows', 'Select the layout style:
Each product can be listed in its own row (rows option) or products can be listed in multiple columns per row (columns option)', '8', '40', NULL, now(), NULL, 'zen_cfg_select_option(array('rows', 'columns'),');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Not really sure if this is ok or not. As of now, the products are all still there and I achieved somewhat similar to what I desired.

I’d like to make sure if my SQL ran properly or not first before I tweak some.

For those who are reading this thread, here’s an image what I’m trying to achieve with this mod.

nyanko chan =^.^=

2 Dec 2008, 5:57 PM
#25
gjh42 avatar

gjh42

Black Belt

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

Re: styling product listing pages with column layout grid

That would be because you had already installed Column Layout Grid, and the sql is purely for that mod - nothing is different in it for Flexible Product Listing. No harm was done, but I will make a note in the readme that the sql doesn't need to be run again if you have Column Grid already.

2 Dec 2008, 6:08 PM
#26
gjh42 avatar

gjh42

Black Belt

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

Re: styling product listing pages with column layout grid

To improve the spacing of the price and add area, find in your stylesheet_flexible_product_listing.css```
.listingPrice {float: left;} /demo setup/

margin: 0.4em 0 0 1.5em;
to get```
.listingPrice {float: left; margin: 0.4em 0 0 1.5em;} /*demo setup*/
2 Dec 2008, 7:25 PM
#27
nyanko_chan avatar

nyanko_chan

New Zenner

Join Date:
Sep 2008
Posts:
40
Plugin Contributions:
0

Re: styling product listing pages with column layout grid

Hi, gjh42

Thank you for clearing SQL thingy!!

And I added the code you suggested. In my opinion, the distance between ‘price’ and ‘add’ was still too long, so I changed it to

Margin: 0.4em 0 0 4.5em;

and now the distance is not too close, not to far. My main browser is Fire Fox, and I will be checking the site with IE and Chrome to see how it looks like. If problem arises, I will come back to this thread to report it.

Thank you so much for the great mod and help!!

nyanko chan =^.^=

2 Dec 2008, 8:37 PM
#28
gjh42 avatar

gjh42

Black Belt

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

Re: styling product listing pages with column layout grid

Looks good!

I would appreciate it if some others would try this out, with various adjustments and settings. Let me know about any issues that show up.

4 Dec 2008, 3:42 PM
#29
berserker avatar

berserker

Totally Zenned

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

Re: styling product listing pages with column layout grid

Hello,

Installed this mod and it seems to be working properly. By the way, if I change the "Layout Style" under Admin/Product Listing back to "Rows", is it normal that the product disappears from the website? If so, does that mean that the only way to go back to default layout is to uninstall this mod?

Also, do I have to upload the "Bonus simpler alternative for CSS control over the stock layout:" or not? At the moment, I only uploaded the files under "includes". Lastly, what are the difference between the two?

All the best

4 Dec 2008, 3:54 PM
#30
berserker avatar

berserker

Totally Zenned

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

Re: styling product listing pages with column layout grid

Forgot to add, how do I align them to the left (pictures, description, price) and then the add to cart to the right of the price?

4 Dec 2008, 6:40 PM
#31
gjh42 avatar

gjh42

Black Belt

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

Re: styling product listing pages with column layout grid

There is a bug that I haven't found yet in the "row" listing setting. I will work on it and post when I have progress.

The "alternative" is just that - an alternate version of the mod for those who don't need the complexity of the full version.
All it does is add class tags to all of the elements of the standard row listing so they can be addressed by the stylesheet.

The class tags generated by the mod are listed in stylesheet_flexible_product_listing.css. You can adjust styling with those. Post a link to your site if you need specific help.

4 Dec 2008, 10:32 PM
#32
berserker avatar

berserker

Totally Zenned

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

Re: styling product listing pages with column layout grid

Hello,

Thanks for the reply and for the mod.

If you go to my site https://www.animeheavens.co.uk, you will see under "New Products for December" that the products are aligned to the left. I want the same thing to happen for the product listings...you can check what I have now by clicking "New Arrivals". Not entirely sure which part on the stylesheet_flexible_product_listing.css should I add codes on and what.

All the best..

5 Dec 2008, 2:58 AM
#33
iggy73 avatar

iggy73

New Zenner

Join Date:
Feb 2008
Location:
Tampa, FL
Posts:
37
Plugin Contributions:
0

Re: styling product listing pages with column layout grid

Hey there everyone. I've trolled the forum and can't seem to run across an answer to a feature I'm sure many of you have thought about or even implemented already.

Using the column layout grid, is it possible to:

  1. Set the number of products shown on each grid page? Right now, I only see 9 when the number of columns is set to 3. Example here:

http://www.sweetlexi.com/index.php?main_page=index&cPath=40_49
It would be nice to be able to set it to a larger value like 21 (or more).

  1. Is it possible to add a "View all" link to force the grid to reload and show every single product on one page? Yes I know this would grow the page vertically (and also take longer to load)... but some folks like shopping this way.

And Glen - if your feature can do this, please let me know! :cool:

Thanks everyone!!

SweetLexi.com
The Chic Boutique

5 Dec 2008, 11:06 AM
#34
gjh42 avatar

gjh42

Black Belt

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

Re: styling product listing pages with column layout grid

Setting the number of products per page for listings is a basic feature of Zen Cart.

See admin > Configuration > Maximum Values > Products Listing- Number Per Page.

You can also set this number for other types of listings.
Setting it to a large number will allow up to that number to show.

5 Dec 2008, 12:46 PM
#35
berserker avatar

berserker

Totally Zenned

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

Re: styling product listing pages with column layout grid

Hello,

How do I set the image to the left?

Thanks

5 Dec 2008, 6:08 PM
#36
iggy73 avatar

iggy73

New Zenner

Join Date:
Feb 2008
Location:
Tampa, FL
Posts:
37
Plugin Contributions:
0

Re: styling product listing pages with column layout grid

gjh42:

Setting the number of products per page for listings is a basic feature of Zen Cart.

LOL. Thanks, Glen. I'm happy that I got this working now and also sheepishly ashamed that I overlooked it. And yes... I have the book.

D'oh!

:laugh::frusty::laugh::oops:

SweetLexi.com
The Chic Boutique

6 Dec 2008, 5:45 PM
#37
berserker avatar

berserker

Totally Zenned

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

Re: styling product listing pages with column layout grid

Hello there,

I managed to get the look I want but have 1 last problem. On this page http://www.animeheavens.co.uk/shop/index.php?main_page=products_all there doesn't seem to be a margin around the listings so they are pretty much on the sides. I want it to look like this page http://www.animeheavens.co.uk/shop/index.php?main_page=index&cPath=573

Im not sure why they are different. Any help pls.

Thank you

7 Dec 2008, 7:18 PM
#38
gjh42 avatar

gjh42

Black Belt

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

Re: styling product listing pages with column layout grid

The product listing has a wrapper div (#indexProductList) which appears to have padding (or else the form inside it has margins).
The all products listing has no margin/padding on wrapper or form. There is a wrapper div (.centerBoxWrapperContents); you need to specify the page body id in order not to affect other pages which may also have that class.

#productsallBody .centerBoxWrapperContents  {padding: 1.0em;}
7 Dec 2008, 9:23 PM
#39
berserker avatar

berserker

Totally Zenned

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

Re: styling product listing pages with column layout grid

That did the trick! THANKS SO MUCH!!!!!

14 Jan 2009, 11:12 PM
#40
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: styling product listing pages with column layout grid

Hi All,

I have been trying to add some spacing to my new products on my homepage (https://www.truwater.com.au)

I would like a space between the border and the top of the pic, the bottom of the pic and the product heading, and the bottom of the product heading and the price.

Everything i seem to do movies the entire centre box not the individual products.

Any help would be great.
THanks