Hello Shopify Community,
We’re experiencing a challenge involving the interplay of cart transformation and automatic discount functionalities on our store. Specifically, we have set up an automatic discount feature that provides a 100% discount for selected product variants. Concurrently, we use a cart transformation function that merges multiple line items into a single bundle.
The issue arises when these functions interact. It appears that when items are bundled together, the discount is not applied to them. My understanding is that the cart transformation (merging line items) occurs prior to the application of the discount, resulting in only the parent bundle product being recognized by the discount function.
This observation is based on our logs, where only the parent bundle product is processed by the discount function.
Could anyone provide insights or guidance on the following points?
- Is there a way to access the contents of a bundle within the discount function?
- Can the order in which these functions (cart transformation and discount application) are executed be modified to ensure discounts are applied correctly to bundled items?
Any assistance or direction to relevant documentation would be greatly appreciated. We’re keen to ensure that our customers can enjoy the intended discounts, even when purchasing bundled products.
Thank you in advance for your help!