Shopify Function · Bundles and cart transforms
Combine qualifying cart items into a Shopify bundle
When a shopper adds two units of one variant and one unit of a second, group those items into a single bundle in the cart. Choose both components and the bundle variant.
How the rule works
-
- When
- The cart contains two units of the first component variant and one unit of the second.
- Then
- Combine the matching components into a single bundle in the cart.
What shoppers see
- Complete set
- The matching items become 1 × T-shirt two-pack.
- Missing one component unit
- The items stay in the cart as added.
Set it up in your shop
Select the bundle and component variants from your catalog. Check the quantities in a matching cart and confirm what happens when one component is missing.
Open the rule as a draft in Mechanic. Test it with your products before publishing.
Customize this Function in Mechanic