Guest Posted June 18, 2003 Share Posted June 18, 2003 Sorry I mean MS2..... not 2.2 getting my versions and milestones confused :D Link to comment Share on other sites More sharing options...
bren Posted June 19, 2003 Share Posted June 19, 2003 anybody? Help, please lol! Link to comment Share on other sites More sharing options...
matbennett Posted June 19, 2003 Share Posted June 19, 2003 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 More sharing options...
wider Posted January 12, 2004 Share Posted January 12, 2004 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 More sharing options...
wider Posted January 12, 2004 Share Posted January 12, 2004 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 More sharing options...
MLidstrom Posted April 4, 2005 Share Posted April 4, 2005 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. <{POST_SNAPBACK}> 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.