How to apply custom discounts using Product (line) attributes + easy bundle builder example
This guide explains how to use the product line attributes rule to create a highly specific discount that applies only to products added to the cart via a third-party app, such as a product bundle builder.
Introduction: What are Product Line Attributes?
Product line attributes are hidden properties or data attached to an item when it's added to the cart. Apps like bundle builders use these attributes to identify which products belong to a specific bundle. By targeting these attributes, you can create a discount that applies only when a customer buys the bundle, not when they buy the products individually.
For this example, we will assume a bundle app adds an attribute with the key
of bundle
and a value
matching the bundle's name (e.g., PDP1
).
1. Start with the Custom Discount Builder
- In the Kite app, select the Custom Discount Builder.
- Give your campaign a name (e.g.,
bundle-discount
).
2. Configure the Discount for the First Part of the Bundle
- In the first option block, go to the "Discountable Products" section.
- Rule 1 (Product Identity): Set the first rule to identify the products. For example, choose
Collections
and select the "Hydrogen" collection. - Rule 2 (Bundle Identity): Click to add another rule and select "product line attributes".
- Enter the attribute key:
bundle
- Enter the attribute value:
PDP1
- Enter the attribute key:
- Ensure the logic is set to "All rules should apply". This is crucial because it means the product must be from the "Hydrogen" collection and have the
PDP1
bundle attribute. - Set your offer for these items (e.g., Fixed price of
₹100
each).
3. Configure the Discount for the Second Part of the Bundle
If your bundle has multiple steps or parts, create a new option for each.
- Click to add a new option.
- In the "Discountable Products" section for this new option, repeat the process:
- Rule 1 (Product Identity): Select the products for the second part of the bundle (e.g., the "Oxygen" collection).
- Rule 2 (Bundle Identity): Add the same "product line attributes" rule (key:
bundle
, value:PDP1
).
- Ensure the logic is set to "All rules should apply".
- Set the offer for this second set of items (e.g., Fixed price of
₹200
each).
4. Save and Test
- Click Save.
- Go to your store's custom bundle page (not the individual product pages).
- Select items from both steps of the bundle and add them to your cart.
- In the cart, verify that the correct fixed prices (
₹100
for the "Hydrogen" items and₹200
for the "Oxygen" items) have been applied.
Updated on: 14/08/2025
Thank you!