Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I change the colors of the product table? pic included


Guest

Recommended Posts

Posted

example.jpg

 

Im trying to change the colors of the table that displays after you navigate through all your catagories to your products... can anyone help a brother out? :D

Posted
example.jpg

 

Im trying to change the colors of the table that displays after you navigate through all your catagories to your products... can anyone help a brother out? :D

 

 

hi,

 

it of course depands on your code, but it probably is these items in stylesheet.css if you have a default osc:

 

TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd {
 background: #f8f8f9;
}

TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even {
 background: #f8f8f9;
}

 

you can check if you have default by looking at includes/modules/product_listing.php ... if you have this then you should be good with the code I gave you.

	  if (($rows/2) == floor($rows/2)) {
	$list_box_contents[] = array('params' => 'class="productListing-even"');
  } else {
	$list_box_contents[] = array('params' => 'class="productListing-odd"');
  }

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted
hi,

 

it of course depands on your code, but it probably is these items in stylesheet.css if you have a default osc:

 

TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd {
 background: #f8f8f9;
}

TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even {
 background: #f8f8f9;
}

 

you can check if you have default by looking at includes/modules/product_listing.php ... if you have this then you should be good with the code I gave you.

	  if (($rows/2) == floor($rows/2)) {
	$list_box_contents[] = array('params' => 'class="productListing-even"');
  } else {
	$list_box_contents[] = array('params' => 'class="productListing-odd"');
  }

 

thanks! worked great!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...