Zen Cart Logo
Forums / General Questions / Can I set different prices for IP Address other than Florida State?

Can I set different prices for IP Address other than Florida State?

Views: 1,128

Results 1 to 4 of 4
19 Jul 2011, 5:58 PM
#1
bbelisario avatar

bbelisario

New Zenner

Join Date:
Jul 2011
Location:
Miami, FL
Posts:
3
Plugin Contributions:
0

Can I set different prices for IP Address other than Florida State?

Hello, my business is located in Miami Florida, USA, I go to internet sales and I wish: I want that when a user with an IP address of the state of Florida see a different price to a user who is in another state the United States different of Florida. Can I modify the code to accomplish this?

Thanks.

Zen Cart version: 1.3.8a

19 Jul 2011, 6:02 PM
#2
handmedown avatar

handmedown

New Zenner

Join Date:
Jul 2011
Posts:
1
Plugin Contributions:
0

Re: Can I set different prices for IP Address other than Florida State?

You should be able to modify fees and taxes and shipping rates by geographic location, but initial site might be an issue as far as my knowledge is aware.

19 Jul 2011, 7:21 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Can I set different prices for IP Address other than Florida State?

It is not that simple... IP addresses are not governed by the geography of the STATE, but by the location of the viewer's ISP.

I could live in Florida, but my ISP could be in Alaska.

20 Jul 2011, 12:48 AM
#4
flamer avatar

flamer

New Zenner

Join Date:
May 2010
Posts:
44
Plugin Contributions:
0

Re: Can I set different prices for IP Address other than Florida State?

There is definitely no way to do this with zen-carts default options. and as another user reported, tracking IP addresses by state is not going to be perfect.

What I would do, use a service on your site like http://www.geobytes.com/IpLocator.htm
which will be somewhat accurate your going to have to be happy with the fact some people outside of flordia will be classified as inside and vice versa.

write a php script in your checkout page that says something along these lines.. (example code)
$if ($geobyteslocation == "Florida") {echo "<popup message>Hi there, you qualify for a 20% discount, enter the coupon code FLORIDABLAH</message>"}

and obviously setup the coupon in zencart admin.

This is going to be tricky if you don't have a reasonable knowledge of php you wont be able to achieve this. You will find someone who can for a small fee if your willing to pay.