Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Colour of Second VAT Price


IAmMithras

Recommended Posts

Changing Price Colour In Second Column

 

I have used the http://www.oscommerce.com/community/contributions,1807 contribution to add a second column to display VAT. I want to be able to change the colour of the ex. VAT price to red.

 

I have tried the following

 

Adding the following to the stylesheet

 

SPAN.PriceColor {

 

font-color: #FF0000;

 

font-size: 10px;

 

}

 

And Adding

 

case 'PRODUCT_LIST_PRICE_EX':

$lc_align = 'right';

if (tep_not_null($listing['specials_new_products_price'])) {$lc_text = '<span class="PriceColor ">' . $currencies->display_price_ex($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span><br><s>' . $currencies->display_price_ex($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>';

} else {

$lc_text = '' . $currencies->display_price_ex($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '';

}

 

But it didn?t work, any ideas?

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...