Feature Request/Bug: Allow different price for bundle items of the same variant #442
PattyKovash
started this conversation in
Feedback: Cart Transform API
Replies: 1 comment
-
Shopify released an update to address this! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Currently in the Cart Transform API version 2024-01, the cart expand operation allows setting of fixed prices on each component of the bundle. The case where this does NOT work is when I want to set different prices for components with the same variant ID.
A use case for this is a buy 3 get the 4th free bundle configuration. In this configuration all 4 bundle components have the same variant ID.
I want the discounting to occur in the cart transform function because I want all of the line items to be associated and expand under the same bundle parent. If I try to achieve this with the discount function, the free item must be added as a separate line item and is not part of the expanded items or bundle.
I have tried adding each component as its own expanded item; however, the cart transform function grabs the first price set and applies that price to subsequent items of the same variant ID in the bundle.
I also tried the UNSTABLE version of the cart transform api that will allow setting of bundle component attributes. Even when I set each bundle component with a unique attribute, the cart transform function still takes the 1st price it encounters for a variant and applies that price to subsequent variants of the same ID in the bundle.
I also tried separate cart transform functions to handle updating the price, however, the expanded items don't register as actual line items until after the order is placed, which is then too late.
It would be great if we truly could set separate prices for each bundle component regardless if a variant appears multiple times in a bundle.
Beta Was this translation helpful? Give feedback.
All reactions