Better Coupon Restrictions

How can we help?

Search the documentation or ask the AI agent anything about the plugin.

Browse by topic

All articles

Apply a coupon from a link (PRO) Share a URL that adds a coupon to the cart automatically, and optionally make the code work only through that link. Apply restrictions to all coupons with global settings (PRO) Set rules such as new customers only or no coupon stacking once for every coupon, with a per coupon opt-out. Getting started with Better Coupon Restrictions Where to find the new coupon restrictions, how to set your first rule, and what happens when a shopper applies the coupon. Hooks and filters reference All the filters and actions Better Coupon Restrictions provides, with arguments and examples. Limit a coupon to dates, months or weekdays Make a coupon valid only between two dates, in chosen calendar months, or on chosen days of the week. Limit a coupon to new customers, logged in or guest shoppers Restrict a coupon to customers with no previous orders, or to shoppers who are logged in or checking out as guests. Limit coupon uses per customer per period (PRO) Let a customer use a coupon a set number of times per day, per week, or per calendar month. Requirements and compatibility WordPress, WooCommerce and PHP requirements, plus support for HPOS, the block checkout, multisite and translation. Restrict a coupon to products with quantity limits Limit a coupon to specific products or variations, with an optional minimum and maximum quantity for each. See which restriction rejected a coupon Shop managers see an extra line on the coupon error naming the exact restriction that turned the coupon away. What each coupon error message means A lookup table of the default messages Better Coupon Restrictions shows and the restriction behind each one. Add your own restriction check Register a custom coupon check with the bcrw_validation_checks filter and reject coupons using bcrw_fail(). Customise the coupon error messages Replace the message a shopper sees when a restriction rejects a coupon, and insert the required amount with {value}. Data, privacy and uninstalling What customer data the plugin stores, how privacy requests are handled, and what is removed when you delete it. Free and PRO features compared Which coupon restrictions are included in the free plugin and which need an active PRO licence. Limit a coupon to a time of day Run happy hour style coupons that only work between two times, including windows that run past midnight. Limit a coupon to user roles Allow a coupon only for certain WordPress user roles, such as wholesale customers, or block it for others. Restrict a coupon by IP address (PRO) Allow or block IP addresses for a coupon and cap how many orders from one IP address can use it. Restrict a coupon by user meta, cart item meta or cookie (PRO) Build custom coupon rules that check a user meta value, cart item data, or a browser cookie. Restrict a coupon to categories with quantity limits Limit a coupon to product categories, set minimum and maximum quantities, and optionally add up quantities across the cart. The discount applies to products outside the restriction Why a percentage or fixed cart coupon limited to certain products can still discount other items, and how to fix it. Track coupon rejections with analytics (PRO) Record every time a restriction rejects a coupon and report on the most rejected coupons and top reasons. Coupon meta keys and stored data Reference of the coupon meta keys, options, database table, cookie and session keys the plugin uses. How coupon restrictions are checked How the plugin combines several restrictions, the order they run in, and when rules that need checkout details are applied. Restrict a coupon by customer address (PRO) Limit a coupon to billing or shipping countries, states, cities or postcodes, and cap uses per address. Restrict a coupon by product attribute Allow or exclude a coupon for products that have a particular global product attribute, such as Size or Colour. Restrict a coupon by referring website (PRO) Only accept a coupon from visitors who arrived from an approved website, or block codes from leak sites. WooCommerce product and category fields have disappeared Why the Products and Product categories fields vanish from the Usage restriction tab, and how to get them back. A new customer coupon is rejected for a first-time buyer Reasons a New Customer Only coupon can reject someone who believes they have never ordered before. Restrict a coupon by email domain (PRO) Allow a coupon only for email addresses from approved domains, such as a partner company, or block domains. Set a minimum cart quantity, subtotal or weight Require a minimum number of items, a minimum subtotal or a minimum total weight in the cart before a coupon applies. A coupon applies in the cart but is removed at checkout Why a coupon can be accepted on the cart page and then removed once the customer fills in the checkout form. Require a minimum spend or number of past orders (PRO) Reward loyal customers by requiring a minimum lifetime spend or a minimum number of previous orders. Restrict a coupon to payment or shipping methods Allow or block a coupon for particular payment gateways and shipping methods chosen at checkout. How restrictions work for guest customers Which coupon restrictions check guests by email, which wait for checkout, and which always reject guests. Restrict a coupon by products purchased before (PRO) Offer a coupon only to customers who have, or have not, bought specific products in the past. PRO features are greyed out or missing What to check when PRO sections stay greyed out, the global settings tab is missing, or Coupon Rejections is not shown. Target customers by last order or registration date (PRO) Limit a coupon by hours since the customer last ordered or since their account was registered.