Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

woo-location-logic readme file

=== WC Location Logic (Light) ===
Contributors: Asad
Tags: woocommerce,location,logic
Requires at least: 6.0.0
Tested up to: 5.6
Requires PHP: 5.6
Stable tag: trunk
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WC Location Logic is a woocommerce plugin that allows you to restrict product coupons and prices based on the user's location. Determines products and variations by country, state, city, zip code, and IP address.

== Description ==
WC Location Logic is a woocommerce plugin allowing you to restrict product coupons and prices based on the user's location. Determines products and variations by country, state, city, zip code, and IP address.

== Installation ==
Upload the plugin files to the /wp-content/plugins/woo-location-logic.zip directory, or install the plugin through the WordPress plugins screen directly.
Activate the plugin through the 'Plugins' screen in WordPress.
Go to the plugin settings page and configure the plugin as needed.
Note: This plugin requires PHP version 5.6 or higher.