Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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:

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...