WP Manifestindependent plugin directory
manifest / ecommerce / gmt-pricing-parity

GMT Pricing Parity

Display country-specific EDD discounts to visitors.

★ 9stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/cferdinandi/gmt-pricing-parity/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Localize base prices for different countries. Automatically adjusts the price of items in-cart and displays a message.

Display a message about the localized pricing with the short code [pricing_parity]. Pass in a string with the variables below to customize.

Template variables

  • {{country}} - the country name
  • {{iso}} - the country ISO code
  • {{amount}} - the discount amount

Working with the API

You can also get data back using the WP Rest API.

Live Data

<your-domain>/wp-json/gmt-pricing-parity/v1/discount/

Test GeoIP

<your-domain>/wp-json/gmt-pricing-parity/v1/discount/test/

License

The code is available under the GPLv3 License. This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.