Forums / All Other Contributions/Addons / Column Layout Grid v2.x Support

Column Layout Grid v2.x Support

Started by gjh42 on 20 Sep 2012, 7:00 PM · Views: 30,576

Results 81 to 100 of 176
6 Sep 2013, 4:33 AM
#81
gjh42 avatar

gjh42

Black Belt

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

Column Layout Grid v2.x Support

If you have set your image links to have a uniform height, and can guarantee that descriptions and all other lower elements will be uniform, that leaves only the item name. Will some products have names so long they wrap to two lines? Will you have some additional text or icon in certain products but not in all or most products? You may be able to set the product boxes to a fixed height and use CSS to keep the qty box at the bottom.

Identifying all the elements that might change can point to the best way to control the whole listing display.

6 Sep 2013, 5:20 PM
#82
scuggler avatar

scuggler

New Zenner

Join Date:
Jan 2013
Location:
San Jose, CA
Posts:
15
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

In the admin under product listing I have all the images set to be 80px high and in product_listing.php I have also limited the product titles to 25 characters to keep them from wrapping to two lines. I don't plan on adding any additional text or icons either, so it should all be uniform right now. Do you know how I might be able to set the product boxes in that way? also I totally forgot to mention that I have removed the quantity box and it is now the "Buy Now" button, really sorry for not mentioning that before.

Thank you again.

6 Sep 2013, 9:56 PM
#83
gjh42 avatar

gjh42

Black Belt

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

Re: Column Layout Grid v2.x Support

Admin setting of images to 80px high will limit the maximum size, but it will not sretch smaller images to 80px. Do you have any images that are displaying at less than 80px? If so, you need to use the link height control CSS rule I posted before (#64 above).

What elements are you seeing variation in?

6 Sep 2013, 10:42 PM
#84
scuggler avatar

scuggler

New Zenner

Join Date:
Jan 2013
Location:
San Jose, CA
Posts:
15
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

There are a few that have a height less than 80px. Pretty much any product that has a height less than 80px is displaying the title, price, and buy now button higher in each row than products equal or greater than 80px. I applied that css in post #64 but it isn't working so well if the image is shorter than 80px.

7 Sep 2013, 12:49 AM
#85
gjh42 avatar

gjh42

Black Belt

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

Re: Column Layout Grid v2.x Support

I just tested this in my v1.5.1 dev site (with CLG 2.3.1) and it worked as intended:```
.centerBoxContentsProducts>a:first-child {display: block; height: 123px;}

7 Sep 2013, 1:04 AM
#86
scuggler avatar

scuggler

New Zenner

Join Date:
Jan 2013
Location:
San Jose, CA
Posts:
15
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

so in this code I should set the height to the height of my largest image? or should I set it to 80px since that is the limit set in the admin panel? Right now I have that code added to my css but it's set to 80px and it's not aligning the shorter imaged products.

7 Sep 2013, 2:56 AM
#87
gjh42 avatar

gjh42

Black Belt

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

Re: Column Layout Grid v2.x Support

Maybe you have some other rule in your stylesheet following this one that is overriding it... Adding !important to the declaration may make a difference. ```
.centerBoxContentsProducts>a:first-child {display: block !important; height: 123px !important;}


If that doesn't help, post a snippet of the view source containing one of the products in the listing. Maybe you have something odd there.
8 Sep 2013, 1:10 AM
#88
scuggler avatar

scuggler

New Zenner

Join Date:
Jan 2013
Location:
San Jose, CA
Posts:
15
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

so I did some more poking around and have discovered that for whatever reason, my stylesheet.css is being pulled from "classic" instead of my custom template. Your fix has worked now that I made the changes in the other css file. Now I just need to reduce the amount of space between the title and price. Thank you for sticking with me on this gjh42!

8 Sep 2013, 4:40 AM
#89
gjh42 avatar

gjh42

Black Belt

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

Re: Column Layout Grid v2.x Support

If you have a custom template active, but the stylesheet in the /classic/ folder is being used, you have something very wrong with your code. It is likely to cause other unexplainable problems down the line. What do you have in your page "view source" code in the <head> section for <link rel="stylesheet" ... ? There will probably be a few of those - please post them so we can see exactly where your cart thinks it should be getting styles from. Alsp post any other folder paths that show a custom template name in the path. What is your template folder name?

8 Sep 2013, 4:24 PM
#90
scuggler avatar

scuggler

New Zenner

Join Date:
Jan 2013
Location:
San Jose, CA
Posts:
15
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

This is probably all my fault. I didn't (still don't really) understand the overrides thing and just started building onto the template_default. I tried renaming it a while back and it created a monster out of my site so I just left it alone.

<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet_css_buttons.css" /> <link rel="stylesheet" type="text/css" media="print" href="includes/templates/classic/css/print_stylesheet.css" /> </head>

All css is pointing to classic . . . is it even possible to rename my template at this point? I really effd this one up yeah?

8 Sep 2013, 4:53 PM
#91
scuggler avatar

scuggler

New Zenner

Join Date:
Jan 2013
Location:
San Jose, CA
Posts:
15
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

I found a great article about how to fix this I believe. Found HERE. I don't have time at the moment but I will work on it later tonight.

9 Sep 2013, 1:11 AM
#92
gjh42 avatar

gjh42

Black Belt

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

Re: Column Layout Grid v2.x Support

If you have already modified a lot of /template_default/ files, your best bet is to move the modified ones to a new custom template folder and upload a set of fresh /template_default/ files from a new ZC download. Use the file-comparing utility mentioned in the article to be certain which default files are modified, and move/copy only those to the new template.

9 Sep 2013, 2:00 AM
#93
scuggler avatar

scuggler

New Zenner

Join Date:
Jan 2013
Location:
San Jose, CA
Posts:
15
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

Thanks again, I will post back after I get a real custom template set up.

17 Sep 2013, 1:15 AM
#94
laborer75 avatar

laborer75

New Zenner

Join Date:
Apr 2010
Posts:
5
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

Hello. Thanks for a great addon. For some reason, I have to have the "column Right Status - Global" set to on in the layout settings page or the column view will not show up. Only the rows view will work. Here's the website in question:

http://www.o2cigs.com/index.php

As you can see the right side does not line up because I had to set it to on for right column global. I did purchase this style so I'm guessing it's something css related stopping it from working properly?

17 Sep 2013, 2:04 AM
#95
gjh42 avatar

gjh42

Black Belt

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

Re: Column Layout Grid v2.x Support

Template Monster is notorious for hacking and slashing standard functionality to make their templates work exactly the way they design them. Also or alternately, there is probably a TM file that fights with a CLG file, so that some customizations need to be merged between two versions. I couldn't say what might actually be happening without being inside your files, and I really don't want the headache of trying to debug or integrate TM customizations.

27 Jun 2014, 10:41 AM
#96
jennydutch avatar

jennydutch

New Zenner

Join Date:
Apr 2014
Location:
Bronx, New York, United States
Posts:
83
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

is it possible to also work with ____ new product,All Product,Featured_products????

28 Jun 2014, 10:48 AM
#98
jennydutch avatar

jennydutch

New Zenner

Join Date:
Apr 2014
Location:
Bronx, New York, United States
Posts:
83
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

gjh42:

Not without making the same customizations in the template files that control those listings.
what kind of change ?

4 Jul 2014, 4:33 PM
#100
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: Column Layout Grid v2.x Support

I've installed this mod many times before and it's always worked great, however, I just installed the latest version, and only one column will display, regardless of how many columns I set it to have in the admin. I've double-checked the installation and all files are in the correct place. I'm not sure what else to try? It does switch between columns and rows when I change that setting. I just can't seem to set the number of columns for some reason.

Danielle