Cart Transform: Supply a different discount to each line item #326
Jay-Plumb
started this conversation in
Feedback: Cart Transform API
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The bundle Shopify function accepts a discount per bundle which does not solve a client goal of ours which currently uses shopify scripts to first:
The discount attribute on a shopify bundle just discounts the subtotal combined and so the discount would not match with the discounts they have with their wholesale partners.
The workaround that I thought could work would be to:
Actual behavior
For testing purposes, I applied one discount to one line item and then added a non discounted item to the cart. Two issues observed:
While I have opened the ticket as a bug, I am okay if Shopify want to track the story as an enhancement should they wish to allow the ability to apply a discount for each line item rather than then existing functionality per bundle: https://shopify.dev/docs/api/functions/reference/cart-transform/graphql/common-objects/priceadjustment
Reproduction steps
Run mutation query on the store to enable bundling
Supply basic discount shopify function from the tutorials
Confirm that the discount is not applied when bundling with incorrect quantities added to the bundle
Beta Was this translation helpful? Give feedback.
All reactions