docs/user/promotions/promotion-actions.mdx
Promotion actions define what happens when a promotion is applied. Once a promotion’s rules are met (if any), its actions are either triggered automatically at checkout or when applying the coupon code on checkout.
Actions can apply discounts, add items to the cart, or make shipping free - and each action can be customized further using various calculators.
Here are the actions you can apply to a promotion in Spree:
Applies a discount to the entire order total.
This is ideal for:
Applies a discount individually to eligible line items in the order.
This is best used when:
Each qualifying item will receive a proportional discount based on the calculator settings.
Automatically adds products to the customer’s cart when the promotion applies.
Common uses:
You’ll be able to:
Makes all shipments in the order free.
Best used when:
This action zeroes out the shipping cost - no calculator needed.
Most actions (except Free Shipping) support the use of calculators to control how the discount is applied.
The available calculators are as follows:
Example: A tiered flat rate could apply $5 off orders over $50, and $10 off orders over $100.
You'll choose a calculator when you add the action. The fields shown will depend on the calculator type selected.
| Goal | Action(s) | Calculator |
|---|---|---|
| $10 off entire order | Whole-order adjustment | Flat Rate |
| 20% off selected products | Per-line-item adjustment | Flat Percent |
| Add a free tote bag on orders $50+ | Create line items, Whole-order adjustment | Flat Rate (set to price of added line item) |
| Free shipping on all orders | Free shipping | – |