- Contributors: shift8
- Donate link: https://www.shift8web.ca
- Tags: woocommerce, wordpress, block, blacklist, woocommerce blacklist, postal, zip, postal code, zip code, zipcode, postalcode
- Requires at least: 3.0.1
- Tested up to: 5.2.2
- Stable tag: 1.04
- License: GPLv3
- License URI: http://www.gnu.org/licenses/gpl-3.0.html
Plugin that allows you to input a list of postal / zip codes to block from ordering on your Woocommerce site. You can determine if you want to hide a payment gateway (i.e. credit card) or an outright block. You can now select multiple payment gateways to "remove" if the zip or postal code matches during the checkout process. An encrypted browser cookie is set that expires on a defined date, set by you in the admin settings. This means that you can "Ban" specific payment gateways for any number of days if the end-user's postal or zip code matches.
You can view three example sites where this plugin is live :
- Example Site 1 : Wordpress Hosting
- Example Site 2 : Web Design in Toronto
- Settings area to allow you to define the Jenkins push URL including the authentication key
This section describes how to install the plugin and get it working.
e.g.
- Upload the plugin files to the
/wp-content/plugins/shif8-wooblock
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress
- Navigate to the plugin settings page and define your settings
You should add a postal code (dont worry about spaces like L0L 0L0 versus L0L0L0, or case sensitivity). Then in a new browser (not logged in as admin) try to checkout with a blocked postal code.
- Admin area
- Stable version created
- Fixed bug in pattern matching portion of postal code array
- Added ability to set number of days for the cookie to ban payment gatways. Default is 30 if none is entered.
- Added ability to select multiple payment gateways to remove if a postal or zip code matches the list
- Loading admin js file correctly now
- Wordpress 5 compatibility