1. Documentation /
  2. Extensions /
  3. Smart Coupons /
  4. How to restrict coupons by location – country, state, city and zip code

How to restrict coupons by location – country, state, city and zip code

Smart Coupons provide a powerful, “all-in-one” solution for gift cards, store credits, discount coupons, and vouchers extending the core functionality of WooCommerce coupons.

Smart Coupons also provides advanced coupon restrictions based on location, shipping methods, payment methods and others.

This doc article explains how you can restrict a coupon to country, state, city or zip code.

Restricting coupons based on location can increase sales as you target your promotions only to specific customers of that region.

How to configure ↑ Back to top

  1. Go to your WordPress Admin panel. Click on Marketing > Coupons.
  2. Create a new coupon or open an existing one. Enter the required details.
  3. Go to the “Usage restrictions” tab.
  4. Look for the field “Address to look in”. Here, you need to choose whether you want to validate the coupon based on the customer’s billing address or the shipping address.
  5. Now under the “Locations” field, you can set country, state, city & zip code. The coupon will only get applied for the locations you enter here.
  6. Publish or Save the coupon.

That’s it.

What if the country, state, city & zip code is not available? ↑ Back to top

By default, in the Locations field, you’ll be able to search & select a country. If you don’t find a country, state, city & zip code, just type the exact values & hit the “Enter” button from the keyboard. It will be added to the Locations field and database as well.

You can add single and multiple custom values.

When you add multiple custom values, make sure that those values are separated by a pipe ‘|’. For example: ‘Washington|California|Chicago|New York’.

Once you add these custom values, you can search and select them from next time onwards.

Note: At first, the coupon will be applied successfully to the cart. It’ll be validated for the location on the checkout page only after the customer enters the values for the country, state, city or zip code.

WooCommerce

The most customizable eCommerce platform for building your online business.

  • 30 day money back guarantee
  • Support teams across the world
  • Safe & Secure online payment