YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Canada + Tax Options
babenis
#1 Posted : Tuesday, February 25, 2003 3:01:33 AM
Rank: Starting Member

Groups: Registered

Joined: 2/14/2003
Posts: 13
Location: ,
Hi there, does anyone have a solution to this: add 15% tax for all customers from ontario, canada Only 7% tax for all canadian users not from Ontario but add no tax for customers from anywhere else. thanks
Sponsor  
 
ron
#2 Posted : Tuesday, February 25, 2003 4:54:02 AM
Rank: Starting Member

Groups: Registered

Joined: 11/24/2002
Posts: 2,004
Location: ,
Sure, but it may take some script and it can get messy if you have a multi-page site and only want to ask the question about destination once.

For a single item (or asking the user for input for every item ordered) you could use a drop-down (select) where the value of the different options was the amount of tax (for an item costing 10.00...

Select destination for tax -
<select name="tax">
<option value="1.50">Ontario</option>
<option value="0.75">Canada</option>
<option value="0">Non-Canada</option>
</select>

But the TAX field is not changed if the user changes the quantity of the order once inside the PayPal cart window! The obvious problem with this example is that if the guy changes the quantity once he is within the PayPal cart he can bypass your taxes. Unfortunately, PayPal does NOT have a percent tax calculation that may be modified!

If you insist on asking the question just once for multiple items on a page then you need to have some scriping that remembers the answer in global variables and a function that is called for every order to stuff the tax value. But AGAIN, you have the problem of the customer modifying the quantity AFTER he gets into the PayPal cart (no way to detect that!!!!!!!!!)

Worst case - for a single question on a multipage site you probably need to go to a local cookie for memory, functions to manipulate the cookie (load, store) and a function to apply the tax. BUT AGAIN, the user may change the quantity once inside the PayPal cart!!!!!!!!! You have no way to detect either the change in quantities, OR the fact that the user has NOW decided to place the order.

There is but a single way out of this problem, and that is a 3rd party cart (a cart you place between your pages and PayPal which is used only for checkout [credit card validation]).

This question has come up both in this forum, and with my clients. I am going to address it by placing something in my prototype client-side shopping cart to handle it. Give me a day or two...

http://members.aol.com/paypalcart/

Ron.
babenis
#3 Posted : Tuesday, February 25, 2003 3:15:25 PM
Rank: Starting Member

Groups: Registered

Joined: 2/14/2003
Posts: 13
Location: ,
is it possible to do it without people having to select anything ?
the product is just one and always one
i was thinking to make something like a page on our server that resolves the ip address, getting country and state from it and redirect user to paypal (post request from the script after IP address has been resolved) ?
ron
#4 Posted : Tuesday, February 25, 2003 7:26:02 PM
Rank: Starting Member

Groups: Registered

Joined: 11/24/2002
Posts: 2,004
Location: ,
That might work for people using local ISPs, but what about national providers like AOL - their IP addr is Chicago, or somewhere, and I have a phone line into them from Colorado.

Ron.
Andrew Chang
#5 Posted : Wednesday, February 26, 2003 2:15:32 PM
Rank: Starting Member

Groups: Registered

Joined: 1/10/2003
Posts: 738
Location: ,
You would need the customer to input some kind of info reguarding their origin and you can collect this information and pass it to paypal. By using State, and country you will be able to do what you want.

such as using a script that checks the order amount adds the tax then passes it to paypal
very basic start

if (country="Canada" && State="Ontario") then tax=.15
else if (country="Canada" && State !="Ontario") tax=.07
else tax=0






Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.607 seconds.