Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

VAT Display


Recommended Posts



I am using the VAT Display contribution, which is just what I wanted on my site. The link is shown below.




However, I am having one problem which is due to the fact that I am using Price break. This creates the problem of creating to many prices on the product categories and I think it would be quite confusing for a customer. To give you an idea of what it looks like I have linked a picture below;




Does anyone know how I could get the contribution to just show excluding prices? rather than including VAT prices aswell?


I have tried to play around with the code which I have pasted below but with no luck.

Thanks again, your help will be much appreciated.


Kind regards


M Parmar


In catalog/product_info.php

	  if ($products_options['options_values_price'] != '0') {
		$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';


	if ($products_options['options_values_price'] != '0') {
		if (tep_session_is_registered('customer_id'))
			$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->format(tep_add_tax($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) * 1 ).') ';
			$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->format(tep_add_tax($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) * 1 ).' inc VAT) (' . $products_options['price_prefix'] . $currencies->format($products_options['options_values_price'] * 1 ).' ex VAT) ';




In catalog/includes/classes/currencies.php
	return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);

	global $customer_id;
  if (tep_session_is_registered('customer_id'))
  { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
	} else {
	$return_this=  $this->format(tep_add_tax($products_price, $products_tax) * $quantity) . ' (inc <a href="' . tep_href_link(FILENAME_VAT, '', 'NONSSL') . '">VAT</a>)<br /> ' . $this->format($products_price * $quantity) . '(ex <a href="' . tep_href_link(FILENAME_VAT, '', 'NONSSL') . '">VAT</a>)';
		return $return_this;

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.

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...