Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

having problems displaying price


Recommended Posts

I have recently added an addon to my site which is the VAT Price Incl and Excl addon. I have amended the files that need to be changed and added the neccesary php file to my server so that the prices shown on my site will be showing price includes vat and prices excludes VAT, the only thing is the prices now all show 0. I think that i have located the part that is causing me the problem and it is in the currencies.php file in includes classes the part of the code i had to amend was this :


global $customer_id;

return tep_round(tep_add_tax($products_price, $products_tax), $this->currencies[$currency]['decimal_places']) * $quantity;



Which i had to change to this:


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;




Now as opposed to it spposed to be showing include and excludes prices with vat all the prices show 0


Any help would be much appreciated


Cheers Guys

Link to comment
Share on other sites


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

  • Create New...