Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tax addon problems


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

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