WooCommerce Purchasing Power Parity Coupon Banner
Displays a banner at the top of your site that offers Purchasing Power Parity for the country your customers are visiting from should a coupon for the detected country be available.
How does it work?
The first time you visit the site at the time of activation, a search is conducted to look for coupons that are restricted by billing and country set under Usage Restrictions when the coupon was made.
When a coupon is found, two cookies
The cookies are then used to load the banner instantly the next time rather than the need to do any Ajax requests again when the customer views any other page on the site or refreshes the page.
The customer can also dismiss the banner which sets another cookie to hide any attempts to display it again for 1 day.
If the customer is on the cart or checkout page and a coupon is available then the coupon is automatically applied.
To use this plugin you will need:
- WooCommerce v3.0.0+
- WooCommerce Coupon Restrictions Extension
- Download a
.zipfile with the latest version.
- Go to WordPress Admin > Plugins > Add New.
- Click Upload Plugin at the top.
- Choose File and select the
.zipfile you downloaded in Step 1.
- Click Install Now and Activate the plugin.
📘 Configuration Guide
1. Creating a Coupon
Go to WooCommerce -> Coupons and then either add a new coupon or edit one you have created previously.
Once you have a coupon setup, go to Usage Restrictions section of coupon data. Make sure you have Use location restrictions checked and Address for location restrictions set to Billing.
Search and select a single country the coupon is for and then Publish.
- Clone the GitHub repository:
- Browse to the folder in the command line.
- Run the
npm install --only=devcommand to install the plugin's dependencies within a /node_modules/ folder.
- Run the
npm install gruntcommand to install Grunt.
grunt zip will create a deployable plugin zipped up and ready to upload and install on a WordPress installation.
📝 Reporting Issues
If you think you have found a bug in the plugin, please open a new issue and I will do my best to help you out.
If you or your company use WooCommerce Purchasing Power Parity Coupon Banner or appreciate the work I’m doing in open source, please consider supporting me directly so I can continue maintaining it and keep evolving the project.
You'll be helping to ensure I can spend the time not just fixing bugs, but keeping the project afloat. Any contribution you make is a big help and is greatly appreciated.
Please also consider starring
I accept one-time donations and monthly via BuyMeACoffee.com
- My PayPal
- Bitcoin (BTC):
- Ethereum (ETH):
- Litecoin (LTC):
Thank you for your support!
WooCommerce Purchasing Power Parity Coupon Banner is released under GNU General Public License v3.0.
WooCommerce Purchasing Power Parity Coupon Banner is developed and maintained by Sébastien Dumont.