I’m using a cart transform function to create bundle products by injecting component line items. I want to exclude certain bundle components from being eligible for discounts (e.g., free gifts or fixed-price items). I’ve tried using product tags to exclude but it is not applying for components of bundle product.
Did you find a solution to this?
One approach could be to create custom discount logic using a Discount Function that checks for specific product tags or metafields associated with the bundle components and avoids adding discounts to bundles that contain such components.
Note that any discount that is applied to the bundle will affect all components within it, as per Produce bundles and discounts.