Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I would like to use shopify function cart transform api to limit the free gift quantity to always be 1, due to previously some people are able to modify the free gift quantity and get extra free gift. For now, we are using shopify script to do the same function, but since it is going to be deprecated, we try to revamp it to use shopify function.
However, in the cart transform api documentation, it seems the update operation does not support a quantity update. Please help to advise what I can do to achieve the same result using shopify function or else. Thanks!
Solved! Go to the solution
This is an accepted solution.
A workaround is using right now:
Use checkout ui extension useApplyCartLinesChange hook to change the quantity of the line item
This is an accepted solution.
A workaround is using right now:
Use checkout ui extension useApplyCartLinesChange hook to change the quantity of the line item
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024