Shopify Function · Bundles and cart transforms
Combine six individual units into a wholesale case
Combine six units of the same variant into a case for buyers tagged wholesale. Retail buyers keep the individual units.
How the rule works
-
- When
- A buyer tagged “wholesale” adds six units of the chosen component variant.
- Then
- Combine the six units into a case in the cart.
What shoppers see
- Wholesale buyer with six units
- The matching items become 1 × T-shirt six-pack.
- Retail buyer with six units
- 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