Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello,
I'm trying to develop an app that allows the user to set up pop-ups to specific product pages. This pop-up will basically ask a price for the product and on click "submit" click it should redirect to the cart with this specific price.
If I understood correctly the API's documentation, I need to use:
Also, do I need to store and host a script for each user ?
It feels like my needs are too complicated for the Shopify environment. Am I getting something wrong?
You first need to understand how the cart/checkout works. Anything added to the cart is a variant. That variant has a defined price.
If you're looking to add a product at a custom price then either:
Webhooks won't be suitable for tracking clicks either. That would be AJAX calls back to your app. How you secure that url from exploits is something you need to think about.