Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Question


dave_s_b

Recommended Posts

there are quite few places that display the product's price so its better to change it at the currency level

 

in your catalog\includes\classes\currencies.php backup the file, locate this code:

 

	function display_price($products_price, $products_tax, $quantity = 1) {
  return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}

change it to this

	function display_price($products_price, $products_tax, $quantity = 1) {
  if (DISPLAY_PRICE_WITH_TAX == 'true')
	return $this->format(tep_add_tax($products_price, $products_tax) * $quantity) . ' inc VAT';
  else
	return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}

 

then once you enable the tax from the osc admin the price should include the "inc vat" string. Check your store thoroughly there could be side effects.

Link to comment
Share on other sites

Fantastic,

 

Thankyou that worked a dream, would you or anybody know where the css is that relates to the price and now the inc vat? As I need to reduce the size as it is messing my table up a little.

 

cheers

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...