Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / We need to block specific cities, but not States...

We need to block specific cities, but not States...

Views: 762

Results 1 to 4 of 4
19 Jan 2013, 6:24 PM
#1
sellerz avatar

sellerz

New Zenner

Join Date:
Nov 2012
Posts:
56
Plugin Contributions:
0

We need to block specific cities, but not States...

The zencart set up for our client delivers within the continental US. They deliver to New York State, and California. But NOT to NY City, Oakland, or Los Angeles.

Zencart gives them control over what orders they will or will not accept, of course. But they say they want Zencart to not allow customers to even place an order, if they do so from these locations.

Is there any way to do that? You can remove specific states from Zencart so they don't show up in your delivery dropdown menus of addresses when placing an order. But can you flag the site in any way so that if someone places a delivery from Oakland, CA, Los Angeles, CA, or NYC, that the order will be blocked?

Any help is appreciated. I'm a designer, not a coder - but they seem to want coding out of me, and that's beyond my ken...

Thanks in advance -

19 Jan 2013, 6:51 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: We need to block specific cities, but not States...

Maybe you could adapt this: http://www.zen-cart.com/showthread.php?193601-PO-Box-Ban
I suppose the concepts which flag addresses which contain the letters spelling "PO Box" and require the customer to enter a real address might be adaptable to your situation. Point it at the ['city'] value instead of the ['street_address'] and ['suburb'] fields.

22 Jan 2013, 4:31 PM
#3
sellerz avatar

sellerz

New Zenner

Join Date:
Nov 2012
Posts:
56
Plugin Contributions:
0

Re: We need to block specific cities, but not States...

Sounds like it could work - I'll try it out.... Thanks!

22 Jan 2013, 5:18 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: We need to block specific cities, but not States...

So.... What if someone in Los Angeles wants to order for cousin Jimmy in Seattle? Might want to base this on the shipping address versus the billing.