Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Coloured Product Price


Colinire

Recommended Posts

Posted

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

Posted

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"

  • 5 months later...
  • 3 years later...
Posted
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:

  • 1 month later...
Posted

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;

  • 4 weeks later...

Archived

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

×
×
  • Create New...