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.
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
- Go to your WordPress Admin panel. Click on Marketing > Coupons.
- Create a new coupon or open an existing one. Enter the required details.
- Go to the “Usage restrictions” tab.
- 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.
- 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.
- Publish or Save the coupon.
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.