Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Product Grid Layout - Alternating row colors

Product Grid Layout - Alternating row colors

Locked

Views: 1,659

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
29 Sep 2007, 7:41 PM
#1
samkarpluk avatar

samkarpluk

New Zenner

Join Date:
Dec 2006
Posts:
2
Plugin Contributions:
0

Product Grid Layout - Alternating row colors

Hello.

I've been called into a zen-cart project to do some layout stuff. The project is using the Grid Layout for product listings. I'm just wondering how can i get alternating rows out of the data. At the moment, each product is listed in its own row, and each row has the following class designation:

<tr class="productListing-even">

I need obviously to get the rows with an alternating class.

Any help appreciated.

Sincerely,

Sam

29 Sep 2007, 8:05 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Product Grid Layout - Alternating row colors

If you are using the Column Grid mod, you won't have each product on its own row... I'm not clear on what you have active and what you want.

The stock code to display each product in its own row will alternate them as <tr class="productListing-even"> and <tr class="productListing-odd">, so you just need to style those classes as desired. I believe there is commented-out code in the stock stylesheet for this.