Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Coloured Product Price


Colinire

Recommended Posts

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

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

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

  • 1 month later...
  • 4 weeks later...

Archived

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

×
×
  • Create New...