Back to Docs

How Country-Based Coupons Work

The WC Purchasing Power Parity plugin uses country-based logic to generate and apply discount coupons dynamically. When a customer visits your store, their location is detected based on their IP address. The plugin matches this country against your configured discount rules and applies a corresponding coupon automatically at checkout.

How it works:

  • When a customer is from a country that qualifies for a PPP discount, the plugin generates a coupon specific to that country using the format you’ve defined (e.g., ppp-us for United States).
  • This coupon is then auto-applied at checkout without requiring manual input from the customer.
  • The discount value and coupon settings (percentage, usage restrictions, etc.) are defined by you in the plugin settings.

Important Notes:

  • The coupons are created as WooCommerce native coupons, which means they are compatible with WooCommerce’s built-in rules.
  • You can regenerate or manage coupons anytime using the “Regenerate Country Coupons” option.
  • The plugin ensures these coupons are applied automatically and invisibly, offering a seamless experience.