Rule templates
Every rule in Playwright Checkout Rules starts from a template: it decides what the rule does, and you set who and what it applies to. There are 23 templates in three areas.
Line Item Rules
Prices, discount codes and quantities. Every rule here except Quantity Limit publishes as one Shopify discount.
- Apply Discount
- Give a percentage, fixed or per-item discount to the customers, carts and items you choose. It’s the most flexible discount template.
- Apply Discount by Code
- Give a different discount for each discount code: one list of codes, each with its own discount type and amount.
- Wildcard Discount Code
- Give one discount for every code that fits a pattern, like VIP-CLUB-****, where each * stands for any one character.
- Allow Discount Codes by Pattern
- Read the discount amount from the code itself: with the pattern PD##, the code PD15 gives 15% off.
- Disallow All Discount Codes
- Turn off discount codes, for example during a sale, with a message customers understand.
- Disallow Discount Codes
- Reject discount codes only when certain conditions match, for example for returning customers with small orders.
- Bundles
- Discount a set of items bought together, like “buy the look and save 15%”.
- Bundles with conditions
- The Bundles template with customer and cart conditions, like “10% off the Summer bundle on orders over $50”.
- Buy One Get One
- Discount items when customers buy others: buy 2 shirts, get a hat free, or buy one, get one half price.
- Tiered Discount
- Give bigger discounts at higher tiers: spend $100 for 10% off, $200 for 20% off.
- Free Gift with Purchase (based on cart subtotal)
- Make a gift item free when the cart’s subtotal is over (or under) an amount, like “spend $50, get a free scarf”.
- Free Gift with Purchase (based on shipping address)
- Make a gift item free for orders shipping to certain countries, provinces or postal codes.
- Quantity Limit
- Stop checkout above a set quantity of a product or variant, with a message that explains the limit.
Shipping Rules
The delivery options customers see and what they cost.
- Shipping Discount
- Discount shipping rates by cart value, customer, products or destination, including free shipping.
- Cap Shipping Rates
- Set a maximum price for shipping rates, for example when an order ships from several locations and Shopify adds their rates together.
- Hide Shipping Rates for PO Boxes
- Hide some or all shipping rates when the shipping address is a post office box.
- Hide Shipping Rate
- Hide shipping rates for certain customers, carts, products or destinations.
- Change Name
- Change the name customers see for shipping rates, like showing “Priority Express” as “Arrives tomorrow”.
- Find and Replace in Name
- Replace text in shipping rate names, like changing “Express” to “Holiday Express” in every rate.
- Reorder Rates
- Put shipping rates in the order you want customers to see them.
Payment Rules
The payment options customers see, their names and their order.
- Rename Payment Option
- Change the name customers see for a payment option, like adding guidance to a bank transfer.
- Hide Payment Option
- Hide payment options for certain customers, countries, products or order sizes.
- Reorder Payment Options
- Put payment options in the order you prefer, so the one you want customers to pick comes first.
Template names in the app
In Playwright, a few templates have “(advanced)” after their name: Apply Discount, Apply Discount by Code, Allow Discount Codes by Pattern, Disallow Discount Codes and Tiered Discount. They offer more conditions, and these docs leave the suffix off. Bundles with conditions is called “Bundles (advanced)” in the app.
The Scripts-only template “Hide Payment Option (when billing and shipping addresses differ)” isn’t listed: Shopify Functions can’t see the billing address when choosing payment methods, so it can’t run.