Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tax in Sub-toal set to 17.5 but calculation wrong.


Guest

Recommended Posts

Hi all,

 

I have a slight problem, well slight for you guys, major for me as I haven't got a clue how to rectify it.

 

I have my goods added to my basket and i'm heading to the checkout. I've selected my shipping option. I have my total for my goods correct, my shipping corrrect and then the tax from both showing underneath.

 

That may seem fine and dandy but my problem is that the tax calculation is wrong. It should be 17.5 % but it's showing different. I've gone through all the admin options and have been trying to sort this for the past 72 hours and it's cracking me up.

 

I didn't want to post about it as i'm sure someone will turn around and say 'Search for it'. Believe me I have tried for 3 days and i've failed.

 

Please give me some help if you can, thanks.

Link to comment
Share on other sites

What settings have you got for tax? What have you played around with - which settings, bits of code etc...?

 

Let us know the full details so we can troubleshoot where the problem may lie - for example, you say the calculation is wrong, but what is wrong with it? is it calculating a different percentage - if so, what, or is it applying a flat charge?

Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem....

Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums.....

if (stumped == true) {

return(square_one($start_over)

} else {

$random_query = tep_fetch_answer($forum_query)

}

Link to comment
Share on other sites

What settings have you got for tax? What have you played around with - which settings, bits of code etc...?

 

Let us know the full details so we can troubleshoot where the problem may lie - for example, you say the calculation is wrong, but what is wrong with it? is it calculating a different percentage - if so, what, or is it applying a flat charge?

 

Sure np.

 

I have set-up my tax zone & my Tax rate to 17.5%.

I have set all shipping to 17.5%.

I have installed the Incl Vat and Excl Vat contribution. Which works fine.

 

Sub-Total: ?46.81

Table Rate (Best Way): ?9.45

UK TAX 17.5%: ?9.60

Total: ?64.45

 

I have gone ahead and bought this case. Now this is final confirmation screen.

 

The Sub-total is correct, the table rate is correct, however the tax calculation is wrong.

?46.81 + ?9.45 * 1.175 = ?66.11

 

However it's showing ?64.45. :( That works out to 14.5 % approx) ???

 

Everything I have set in the admin as shown above is 17.5. I read somewhere about someone saying there was a calulation error in one of the order files, but I can't find it. If this isn't sufficient information, let me know and i'll get what you need. Thanks.

Link to comment
Share on other sites

Sure np.

 

I have set-up my tax zone & my Tax rate to 17.5%.

I have set all shipping to 17.5%.

I have installed the Incl Vat and Excl Vat contribution. Which works fine.

I have gone ahead and bought this case. Now this is final confirmation screen.

 

The Sub-total is correct, the table rate is correct, however the tax calculation is wrong.

?46.81 + ?9.45 * 1.175 = ?66.11

 

However it's showing ?64.45. :( That works out to 14.5 % approx) ???

 

Everything I have set in the admin as shown above is 17.5. I read somewhere about someone saying there was a calulation error in one of the order files, but I can't find it. If this isn't sufficient information, let me know and i'll get what you need. Thanks.

 

Anyone?

Link to comment
Share on other sites

  • 3 weeks later...
your default (gbp) currency in admin is set to 1.00000000 right?

 

 

Default is GBP and set to 1.

 

Ive sussed out the problem. VAT is already calculated. Im showing the VAT prices on the site and when it does the calculation its actually showing WHAT the actual vat on that price is.

 

So, the issue not to do with calculation, but to do with confusion.

 

How can we show the price less vat in the Sub-Total?? so that customers dont get as confused as I did.

 

rgds

 

Mick

Link to comment
Share on other sites

I think the subtotal is controlled from the includes\classes\order.php in there is this:

$this->info['subtotal'] += $shown_price;

 

and before that the $shown_price includes the tax.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...