Rule Types
PredictCart offers five distinct rule types, each designed for a specific purpose. A single rule belongs to exactly one type.
Product Pricing
Applies price adjustments directly to individual products or product groups in the cart. The adjusted price is reflected per-item.
Use cases:
- Volume discounts ("Buy 5+, get 20% off each")
- Tiered pricing ("First 3 at full price, next 3 at 10% off")
- BOGO offers ("Buy 2, Get 1 Free")
- Per-item fixed price or amount discounts
Product Pricing rules run at woocommerce_before_calculate_totals and modify the product's unit price before WooCommerce computes line totals.
Cart Discounts
Applies a percentage or fixed-amount discount to the cart total, shown as a negative fee line. No coupon codes are required.
Use cases:
- "10% off entire cart when total exceeds $100"
- "$5 flat discount for returning customers"
- Seasonal cart-wide promotions
Cart Discounts are applied via woocommerce_cart_calculate_fees.
Checkout Fees
Adds dynamic fees to the checkout based on conditional logic.
Use cases:
- "Small order fee for carts under $10"
- "Payment method surcharge"
- "Late hour processing fee"
Checkout Fees are also applied via woocommerce_cart_calculate_fees, at a later priority than Cart Discounts.
BOGO
Buy X Get Y offers that automatically add free or discounted items to the cart when purchase conditions are met.
Use cases:
- "Buy 2, Get 1 Free" on the same product
- "Buy a T-shirt, get socks at 50% off" (cross-product)
- Tiered BOGO with percentage or fixed-amount discounts on receive items
BOGO rules support same-product (XX) and cross-product (XY) modes with configurable purchase and receive quantities, pricing methods, and product eligibility.
Free Shipping
Offers free shipping based on cart value, quantity, weight, customer role, or specific products.
Use cases:
- "Free shipping on orders over $50"
- "Free shipping for VIP customers"
- "Free shipping on specific product categories"
Free Shipping rules apply at the shipping method level and can be combined with shipping zones and methods.