View Single Post
  #2  
Old 02-28-2007, 11:48 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Alternate background shades for each product...

backup your files before trying this since i am just going off the top of my head...

in products_t.tpl, before {/section}, add </div> and right after {section name=product loop=$products} add:
Code:
{if %product.index% is even} <div class="shaded"> {else} <div class="nonshaded"> {/if}
and in your css style sheet, add (id recommend you change the color values however):
Code:
.shaded { background-color: #654321; } .nonshaded { background-color: #123456; }
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote