Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Alternate background shades for each product...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-28-2007, 10:26 AM
 
kalwani@hotmail.com kalwani@hotmail.com is offline
 

Member
  
Join Date: Jan 2007
Posts: 10
 

Default Alternate background shades for each product...

Can anyone please suggest how i can insert a alternate background color for each product in the central product list on the customer page. The way my website is setup it is hard to differentiate information of one product from the next since the background is a standard white throughout.

Thanks in advance for your help
__________________
www.justintrend.com
xcart V 4.0.19 (Unix)
Reply With Quote
  #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
  #3  
Old 03-08-2007, 07:26 PM
 
kalwani@hotmail.com kalwani@hotmail.com is offline
 

Member
  
Join Date: Jan 2007
Posts: 10
 

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

The above code did not do it.
Can anyone else please help out on this....Thx
__________________
www.justintrend.com
xcart V 4.0.19 (Unix)
Reply With Quote
  #4  
Old 03-08-2007, 07:40 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

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

I put a border around mine...

edit the css...

.PListCell {
BACKGROUND-COLOR: #ffffff;
TEXT-ALIGN: center;
PADDING: 10px;
VERTICAL-ALIGN: top;
border: 1px solid #7289A8;
}

I don't use the same layout as you but I'm sure you can figure it out.
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 03-09-2007, 03:22 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

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

Quote:
Originally Posted by kalwani@hotmail.com
The above code did not do it.
Can anyone else please help out on this....Thx

you may have to remove ' class="DialogBox" ' in the TD
Code:
<TD align="center" valign="top" width="{$width}%" class="DialogBox">

again, backup your files before you try the above mod


note: you may need to edit products.tpl instead if you only have a 1 column setup
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:25 AM.

   

 
X-Cart forums © 2001-2020