Documentation for Coupon & Discount by User Role for WooCommerce Plugin

Author: WPFactory PluginsVersion: 2.1.0Updated: 6 months ago
Requires WordPress version: 4.4Tested up to WordPress version: 6.4

Settings

With Coupon by User Role for WooCommerce plugin you can:

  • Disable or invalidate selected (or all) coupons for selected user role(s). For example, you could disable coupons for “Guest” and/or “Customer” user roles.
  • Set coupon amount per user role. For example, with the same coupon code you can give a 20% discount to your standard customers, and 30% to your VIP customers.
The plugin is multi-roles compatible – in case if you have installed a plugin for multi-roles on your site (i.e. site user can have multiple user roles at once), the plugin will check all user’s roles (i.e. not only the first one).

Options

Plugin settings are located in “WooCommerce > Settings > Coupon by User Role”.

Coupon Availability by User Role

Disable or invalidate selected (or all) coupons for selected user role(s).

All Coupons

Coupon by User Role for WooCommerce - Settings - Availability - All Coupons

Disable all coupons for selected user roles
This will disable all coupons for selected user roles. Coupons will be disabled completely, including coupon code input on the cart page.
Default: None
Disable all coupons for selected user roles: Exceptions
This is useful if user can have multiple roles at once on your site.
Default: None
Invalidate all coupons for selected user roles
This will invalidate all coupons for selected user roles. Coupon code input will still be available on the cart page.
Default: None
Invalidate all coupons for selected user roles: Exceptions
This is useful if user can have multiple roles at once on your site.
Default: None

Per Coupon

Coupon by User Role for WooCommerce - Admin Settings - Per Coupon

Invalidate per coupon
This will add “Invalidate by user role” tab to each coupon’s admin edit page.
Default: no

Coupon by User Role for WooCommerce - Availability per Coupon

Message

Coupon by User Role for WooCommerce - Admin Settings - Message

"Coupon is not valid" message
Message that will be displayed for invalid coupons on frontend. Available placeholders: %coupon_code%, %coupon_amount%.
Default:
Coupon is not valid for your user role.
The plugin is WPML/Polylang compatible. To translate the message into another language, you can use [alg_wc_cbur_translate] shortcode, e.g.:

[alg_wc_cbur_translate lang="DE" lang_text="Message for DE" not_lang_text="Message for other languages"]

or in more complex form:

[alg_wc_cbur_translate lang="DE"]Message for DE[/alg_wc_cbur_translate][alg_wc_cbur_translate lang="NL"]Message for NL[/alg_wc_cbur_translate][alg_wc_cbur_translate not_lang="DE,NL"]Message for other languages[/alg_wc_cbur_translate]

Coupon Amount by User Role

Set coupon amount per user role.

Coupon by User Role for WooCommerce - Settings - Amount per Coupon

Amount per coupon
This will add “Amount by user role” tab to each coupon’s admin edit page.
Default: no

Coupon by User Role for WooCommerce - Amount per Coupon