App reviews, troubleshooting, and recommendations
Is it possible to add a variant to a cart (using cart ID?) through a custom app? Or does this have to be done with the AJAX api through the theme?
I'm trying to develop a middleware that receives webhooks when a cart is created, and automatically adds a warranty variant to the cart. There's a lot of conflicting information regarding what's possible on this. Thanks!
No. There is no backend api to communicate what's in a cart only frontend javascript pinging your app.
Use scripttags to add the item to the cart using the fronted ajax api
To create a custom order with specific items on the backend use draft orders.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024