Page 1 of 1

Restricting Coupons to specific Geo Zones

Posted: Sat Feb 26, 2011 10:48 pm
by gavin m
I was wondering if it's possible, or already done by someone in an extension, to restrict coupons to selected Geo Zones?

I'd like the ability to do regional specific specials using coupons..... :crazy:

Re: Restricting Coupons to specific Geo Zones

Posted: Sun Feb 27, 2011 12:50 am
by openmycart.com
and how do you announcing your coupon code? in that page You can use conditional statement

Re: Restricting Coupons to specific Geo Zones

Posted: Sun Feb 27, 2011 1:04 am
by gavin m
Yes, I have done that before, but that doesn't stop the coupon from being used for orders to a country I say it can't be used for. Then I have to refund the order and that increases my paperwork.

Some times, people don't read what you type.....

It would just be nice to have the ability to select geo zones for a coupon, the same way you can select products.

Re: Restricting Coupons to specific Geo Zones

Posted: Sun Feb 27, 2011 1:59 am
by openmycart.com
Yeah that I mean with "in that page You can use conditional statement" You could do this at least in 2 ways.
let say we will block it at shipping page, so You can put the conditional statement code there.
e.g. in shipping.tpl or shipping.php file the logic can be as following:
if found zone_id = 2 selected use coupon code to true else to false

Re: Restricting Coupons to specific Geo Zones

Posted: Thu Nov 15, 2012 12:31 am
by jmagro
Do you have the actual code that will make this work? I would like to run a promotion available only for 48 continuous US states.