Skip to main content

Discount Limits

PredictCart supports both global and per-customer discount limits to prevent excessive discounting.

Global Discount Limits

Configured in PredictCart Settings. Available limit types:

TypeBehavior
No limitNo global limit
Per-item discount amountMaximum fixed discount per item (e.g., max $10 off per unit)
Per-item discount percentageMaximum percentage discount per item
Total cart discount amountMaximum total discount for the entire cart

Per-Customer Limits

Enable per-customer discount tracking to prevent individual customers from exceeding a discount budget:

SettingDescription
EnableTurn per-customer limits on/off
Limit AmountMaximum discount amount per period
PeriodDaily, Weekly, Monthly, Yearly, or Lifetime

Customer usage is tracked via user meta and recorded when orders reach completed or payment_complete status.

How Limits Are Enforced

  1. PredictCart calculates the total discount for the cart
  2. It checks customer usage for the current period
  3. If the combined total exceeds the limit, discounts are proportionally scaled down
  4. The most restrictive limit (global vs. customer) takes precedence

Resetting Customer Limits

Admins can reset a customer's discount usage from the user profile or programmatically via PredictCart_Pricing::reset_customer_discount_usage().