Colinire Posted November 30, 2002 Share Posted November 30, 2002 Hi, Anyone help me with this little problem? I want my product price to be a different colour from the Product title at the top of the page. How can I do this? Where can I enter the font tags to change this? Cheers Colin Link to comment Share on other sites More sharing options...
mattice Posted November 30, 2002 Share Posted November 30, 2002 create a new class in your stylesheet.css: SPAN.PriceColor { font-color: value; font-size: value; } Then in every page (product_info.php includes/modules/product_listing.php etc) where the price needs to be displayed differently add '<span class="PriceColor">' . $price . '</span>' where '$price' perhaps will be called different in each page. Just look and you will spot it. HTH Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
jdreamer Posted May 6, 2003 Share Posted May 6, 2003 Thanks it worked great! Link to comment Share on other sites More sharing options...
chrisbg Posted March 15, 2007 Share Posted March 15, 2007 create a new class in your stylesheet.css: SPAN.PriceColor { font-color: value; font-size: value; } Then in every page (product_info.php includes/modules/product_listing.php etc) where the price needs to be displayed differently add '<span class="PriceColor">' . $price . '</span>' where '$price' perhaps will be called different in each page. Just look and you will spot it. HTH Mattice This is very cool, but where i need to put the code '<span class="PriceColor">' . $price . '</span>' i tryed several places in product_info.php and includes/modules/product_listing.php, NOTHING changed, please, HELP :huh: Link to comment Share on other sites More sharing options...
GeorgeP Posted April 26, 2007 Share Posted April 26, 2007 Chris in modules/product_listing.php check out arround line 112 or 115 I wanted to bold my price column and I added a '<b>' . to $lc_text before the nbsp; Link to comment Share on other sites More sharing options...
lsamp Posted May 18, 2007 Share Posted May 18, 2007 I found the answer on this post: http://www.oscommerce.com/forums/index.php?showtopic=177742 It worked for me. Hope it helps you, too. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.