This example allows only variants of the same product to be bundled together. Use it when you want customers to be able to buy different sizes or colors together, while restricting bundling with other products.
Prerequisite: The initial setup for bundle limits must be complete. If you haven't done this yet, see "Initial Setup (Bundle Limits)".
You can check the behavior after setup in [Demo] Bundling Limit — Only Variants Can Be Purchased Together.
When the bundle rule is enabled, it evaluates combinations by product whenever the cart contains an eligible item.
Only variants of the same product (e.g., size S + size M): purchase is allowed.
Eligible item + a different eligible item: purchase is not allowed.
Eligible item + a non-eligible item: purchase is not allowed.
Note: Items specified as "Excluded items" are treated as neither eligible items nor non-eligible items, and are not included in the bundle evaluation.
(1) Create a bundle rule
Open the app admin → "Bundle rules" → "Create rule".
(2) Enter the settings
Configure the following.
Field | Value |
|---|---|
Title | Any internal title |
Bundle limit level | Bundle only with specific items → Variations of the same product |
Eligible items | Products for which only bundling between variants is allowed |
Excluded items | Set if needed |
Product message | Enter if needed |
Display timing | Cart updated and checkout |
Alert message | Enter if needed |
(3) Save and enable the bundle rule
After saving the settings, select "Enable." Saving alone does not apply the bundle limit.
(4) Check the behavior
Check the result when the cart is updated and at checkout, both with multiple variants of the same product in the cart and with a different product added.
Variants belonging to the same product can be combined and purchased together regardless of quantity or type.
Bundling with non-eligible products is also not allowed. To exclude a non-eligible product from the evaluation, specify it as an "Excluded item."
Variables cannot be used in the product message or alert message for bundle rules.