This product includes GeoLite2 data created by MaxMind, available from
http://www.maxmind.com
A WooCommerce plugin/extension that adds ability for your store to show/hide products based on visitors geolocation.
You can add many different countries in which you want the settings to apply to. You do this by adding a rule and setting the 2 letter ISO country code in which you want to apply to. For example "US". You then can set which products and categories to show/hide. You may select more than one for each rule.
You can also add a region. For example if you want to target anyone that is in the US and in California, you would enter the region code of CA for California.
Furthermore, you can also filter by city. For example if you want to target anyone that is in the US and California but also in the city of Los Angeles, you would enter the city name Los Angeles in the field.
You can also test out your settings as if you're visiting the site from another country. Enabling the testmode on a particular rule, your site will hide/show the products/categories per the rules of that row. Please note that you will need to use this especially when you're testing this on localhost as that IP may not always be valid. Be sure to turn off testmode when done testing and ready to go live.
There is no active support for this plugin however you can post your questions to
https://wordpress.org/support/plugin/woocommerce-geolocation-based-products.
If you want to contribute or want to file a repeatable bug, please go to
https://github.com/roykho/woocommerce-geolocation-based-products
Minimum Requirements
- WordPress 3.9.1 or greater
- PHP version 5.4.0 or greater
-
WooCommerce 2.5.0 or greater
-
Be sure WooCommerce plugin is already installed.
- Upload the folder
woocommerce-geolocation-based-products
to the /wp-content/plugins/
directory
- Activate the plugin through the 'Plugins' menu in WordPress
- Click on settings link to get to the settings page or get to the settings page by clicking on Geolocation link under WooCommerce Products Menu.
Note
Rules that are towards the bottom will supercede the rules above it. You can drag and drop the rules to rearrange the order.
You can test each individual rule by checking the "test" checkbox. This will simulate your current location to match what is set for that rule.
This plugin utilizes the MaxMind GeoIP API and thus will store a copy of the database on your site. This makes for a better experience for users. The API will download the database once a week to refresh any updated geolocation data.