titbread Posted January 25, 2006 Posted January 25, 2006 Hey guys, I was wondering if anyone could reply to this thread and lemme know if there has been serious bug fixes to the order total module or shipping and payment processing modules as in my version of oscommerce 2.2 - ms2 these prices are all incorrectly calculated. Also when I specify the price of a download option at ?1 it appears as ?4 in the cart. VAT looks like it is being rouned down to one decimal place. I have inputted it as 17.5% and seen that this is a bug that has been occuring for alot of people. Can anyone tell me how to fix these 2 bugs? 1. VAT being incorrectly calculated 2. Shipping and Product price incorrect at checkout? A reply is much appreciated, thanks for any help given!
titbread Posted January 25, 2006 Author Posted January 25, 2006 ...And here is the fix! (because you guys helped so friggin much init! lol no harshness but wuda been nice to see one reply at least! I've found about 2 or so other threads very similar to this so I hope to help some people with this fix) Ok so if your VAT is not being calculated correctly or if your prices are displaying incorrectly on your pages. Please backup your files before doing anything as this fix may not work with the configuration you have and I don't wanna be held responsible! This could work, it did for me. 1. Add the following to includes/application_top.php, I put this on line 16 after define('PAGE_PARSE_START_TIME', microtime()); //hack for tax define('DISPLAY_PRICE_WITH_TAX', 'true'); 2. In Admin goto Locations / Taxes and now have a good hard look through your configurations. You will need the following, do it in the order I list as otherwise you will have difficulties; Countries - A Country for the United Kingdom or wherever you are doing this for Zones - Your country you created will need atleast one zone. I made three, England, Wales and Scotland. Tax Zones - Create on for your country, then click the folder. Press insert, choose the country and zone you created. Tax Classes - Create a class called VAT or whatever for your purposes and give it a discription Tax Rates - Create a rate for the class and zone and you now have most of it in place! 3. By this point you will have the correct tax being calculated if you have a test user account and specify where their address is again with these new changes to the admin area, you will have a choice of zone now. This will specify the calculation of VAT. You may not be able to see this yet thought, step 4 tells you how! 4. You may just be seeing ?1 or a one digit figure for all your results in your shop, although you may not of noticed it but ask yourself the question - Have I ever seen the prices displayed with decimal places?? If the answer is no or your unsure, then goto Admin -> Currencies and set the decimal places to 2. Actually input the number 2, this had me puzzled for fucking hours, but what it wants is the number of decimal places to display. Once you have specified this you will see prices displayed as ?1.00 in your shop. And this will most likely fix your vat problem! Wicked!!!! :D If this doesn't fix your issue but gives you some help then add to the thread init!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.