Skip to content
Docs menu

Playwright Checkout Rules documentation

Playwright Checkout Rules runs your store’s checkout rules from one app in your Shopify admin: discounts and promotions, discount code rules, quantity limits, and the shipping and payment options customers see. These guides cover every template, condition and setting, and what Shopify checkout does with them.

How rules work

  1. Pick a template. It decides what the rule does: a bundle, a buy X get Y offer, a code rule, a shipping discount, a hidden payment option. See Templates.
  2. Set conditions and settings. Conditions decide who and what the rule applies to: customer, cart, product and destination. See Conditions. Then select Save Rule.
  3. Publish. Playwright checks every rule against what Shopify Functions can do, tells you what to change, and publishes the rules that can run to Shopify checkout. See Publishing.

Rules live in three areas, each with its own tab in Playwright: Line Item Rules (prices, bundles, discount codes and quantity limits), Shipping Rules and Payment Rules. Within an area, rules run one after another, so a later rule sees the cart as earlier rules left it.

Where your rules run

Playwright publishes your rules as Shopify Functions, which run inside Shopify’s checkout. For each area it keeps a few discounts or customizations in your Shopify admin, named so you can find them:

RulesIn your Shopify admin
Discounts, bundles, buy X get Y, tiers, free gifts and code rulesThe automatic discount “Playwright: discount rules”, plus the code discount “Playwright: discount codes” when rules check for codes
Quantity limitsThe checkout validation “Playwright: quantity limits”
Shipping discounts and rate capsThe automatic discount “Playwright: shipping discounts”
Hiding, renaming and reordering shipping ratesThe delivery customization “Playwright: shipping rules”
Payment rulesThe payment customization “Playwright: payment rules”

Guides

Getting started
Install Playwright, create a first rule, publish it and check it at checkout.
Templates
All 23 rule templates, each with every setting, an example and what’s different on Shopify Functions.
Conditions
Customer, cart, product and destination conditions, all or any matching, and which rules can use each.
Discount codes
Codes created for you, wildcards, rejecting codes, stopping stacking and how codes combine.
BOGO and bundles
How buy X get Y counts, same-product buy one get one, free gifts, bundles and tiers.
Shipping
Hide, rename, reorder, discount and cap shipping rates.
Payments
Hide, rename and reorder payment options.
Publishing
What Publish does, every pre-publish check, live status, the size limit and rule order.
Limits
Shopify Functions limits: instructions, large carts, size, tags, codes and plans.
Moving from Scripts
Move your Scripts rules to Shopify Functions and what changes.
FAQ
Quick answers to common questions.
Troubleshooting
What to check when a rule doesn’t do what you expect.

Get help

Email support@playwrightapp.com with your store’s myshopify.com address, the rule’s name and what you expected to happen. Screenshots of the rule’s settings help us answer in one reply.