Akshara Posted May 13, 2003 Posted May 13, 2003 Hello there. With special thanks to Ocularmagic, we were able to come up with a temporary yet simple solution to the City Tax problem. It has been bundled up as a contribution, and can be found here... http://www.oscommerce.com/community/contributions,1240 What it does is hack the includes/functions/general.php file by adding a hardcoded If/Else conditional which checks a customer's address book in the database for their entry_city, and compares it to their entry_zone_id (or State/Province). If they both match what you input into the general.php file, then it returns a custom tax rate and description which you specifiy; if either doesn't match, then it simply runs the normal tax rate and description functions. It's very simple to install, and works very well. Also, it is entirely possible for the code to be modified to search the entry_postcode and entry_suburb fields in place of the entry_city field, if one wanted to customize this to work for Zip Codes or Suburbs (which could be easily modified in the language files to be 'Counties' instead). :wink: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.