Skip to content
Docs menu

Bundles

Discount a set of items bought together, like “buy the look and save 15%”. A Playwright Checkout Rules template for cart, pricing and discount codes.

What it does

You list the bundle’s items and how many of each it needs. When the cart has every item in at least those quantities, Playwright discounts the bundle.

Items an earlier rule already discounted don’t count toward a bundle.

For example:

  • Buy the look and save 15%
  • Buy matching collar and leash and get $5 off

Settings

Find it under Line Item Rules in Playwright, in Bundles. Give the rule a name, fill in these settings and select Save Rule.

Discount to apply
The discount to give, with the message customers see next to it at checkout. Every discount rule needs one: with “None” the rule does nothing.
  • Percentage Discount: Takes a percentage off the price of each selected item. 100 makes it free.
  • Fixed Total Discount: Takes up to a total amount, in dollars, off the selected items. Discount items to $0 until maximum reached discounts one item after another until the amount is used up; Split discount between items spreads it over the items in proportion to their prices.
  • Fixed Per Item Discount: Takes a fixed amount, in dollars, off each selected unit. A price never goes below $0.
  • Tax Discount: Removes the tax included in the price, for customers who shouldn’t pay it when your prices include tax. Enter the tax rate your prices include, as a percentage.
Apply discount to full bundles only
When checked, only the units that make complete bundles are discounted. When unchecked, once the cart has one full bundle, every matching item is discounted.
Items in bundle
One row per bundle item: what identifies it (Product ID, Variant ID, Variant SKU, Product type or Product tag), the matching IDs, SKUs, types or tags separated by commas, and how many the bundle needs.

Example: Buy the look, save 15%

  1. Items in bundle: Product tag look-shirt : 1, and Product tag look-hat : 1.
  2. Discount to apply: Percentage Discount, 15, “Look bundle”.
  3. Apply discount to full bundles only: checked.

At checkout: A cart with 2 tagged shirts and 1 tagged hat makes one bundle: one shirt and the hat are 15% off, and the second shirt is full price.

On Shopify Functions

Playwright publishes this template as part of the Shopify discount “Playwright: discount rules”, and as “Playwright: discount codes” when its rules check for codes.

It runs as it did with Shopify Scripts.

Tag conditions match whole tags only. See Conditions and Publishing.