Author |
Topic |
|
denimz
Starting Member
USA
6 Posts |
Posted - November 10 2003 : 18:25:00
|
Could anyone point me in the right direction for some code that would allow me to charge taxes by City in only one State?
Thanks.
|
|
jonmadrid
VP-CART New User
USA
192 Posts |
Posted - November 12 2003 : 13:17:10
|
denimz,
Will all orders from that state have tax, or just the orders from that city? Also, will you be taxing any other orders in any way (by states, country, etc)?
All the best,
Jon Madrid -------------------- Madrid Communications Web Design, Development, and Hosting www.madridcom.com
|
|
|
jonmadrid
VP-CART New User
USA
192 Posts |
Posted - November 12 2003 : 16:29:00
|
denimz,
Here is the simple solution if you're taxing only by city and NOT by state. In the shoptax.asp file (version 5.0), around line 46, change
********* state=ucase(Getsess("state")) *********
to this
********* state=ucase(Getsess("city")) *********
What that does is calculates based on the city value, rather than the state. Then just make sure you have the city name in the 'xtaxstatename' config field and the appropriate tax rate in the 'xtaxstaterates' config field.
I think that should work. You might want to make some notes in that file just so you know that the 'State/Province' tax handler has been tweaked to be 'City' tax, especially since everything else in there will still say 'state'.
Let me know if that solves your problem.
All the best,
Jon Madrid -------------------- Madrid Communications Web Design, Development, and Hosting www.madridcom.com
|
|
|
denimz
Starting Member
USA
6 Posts |
Posted - November 12 2003 : 17:32:29
|
Thanks Jon. I only need taxes to be set for cities in California. All other states will not be taxed. I'll add those mods and see what happens. But I don't think the field that will hold the cities will be large enough. But we'll see what happens.
|
|
|
support
Administrator
4679 Posts |
Posted - November 12 2003 : 20:06:26
|
We have a free, on request, addon that uses zip codes to determine tax rates. It was developed for California but can be used in any state.
If you wish to try it, please contact http://www.vpasp.com/sales/shopcustcontact.asp
Using city names is extremely prone to typing, case sensitrive, abbreviation and other errors
VP-ASP Support
|
|
|
|
Topic |
|