Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

VAT inclusive pricing ?


Ramesh

Recommended Posts

Bren,

 

I would tell you how I do this, but I have come to the conclusion that it is a bad solution.

 

Much better is web-tech's suggestion above to just remove the code that adds the VAT to the total. I plan to look at this method soon, but haven't yet. This means that I can't give you any pointers of where to look at the moment. Sorry.

Link to comment
Share on other sites

  • 6 months later...

Suggestion:

 

I'm no expert, so perhaps someone else could try this.

Why not make a little alteration/contribution that converts the product price from inc.VAt to ex.VAT before it's actually written to the database.

Osc can then calculate all it needs to do with the proper ex.Vat price, and the shop owner wouldn't have to worry about using his pocket-calculater to extract vat.

 

Would that work?

Link to comment
Share on other sites

Actually, I've just tried that and it seems to work for me:

 

in admin/categories.php

 

I changed the line

 

 'products_price' => tep_db_prepare_input($HTTP_POST_VARS['products_price']),

to

 'products_price' => tep_db_prepare_input($HTTP_POST_VARS['products_price']/1.175),

 

This applies to the UK VAT rate.

If you're using the options with prices you'd have to fiddle with that as well.

Please give feedback or develop into a proper contribution if you think this is valuable.

It could obviously be combined with the tick-box solution as well.

Link to comment
Share on other sites

  • 1 year later...
Actually, I've just tried that and it seems to work for me:

 

in admin/categories.php

 

I changed the line

 

 'products_price' => tep_db_prepare_input($HTTP_POST_VARS['products_price']),

to

 'products_price' => tep_db_prepare_input($HTTP_POST_VARS['products_price']/1.175),

 

This applies to the UK VAT rate.

If you're using the options with prices you'd have to fiddle with that as well.

Please give feedback or develop into a proper contribution if you think this is valuable.

It could obviously be combined with the tick-box solution as well.

 

This is simple and clean I'm currently working on something similar, but how do you find the VAT in the database? I rather not hardcode it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...