Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I am trying to create a button on select product pages that leads to a custom Shopify checkout with applied discounts. How best would I go about this? Calling the checkout API with information on the cart from webhooks?
You could go much more simple with a cart permalink and an automatic discount
To learn more visit the Shopify Help Center or the Community Blog.
To better clarify my situation, I am building an app that helps with creating that particular checkout (with applied discounts) on different stores that have installed my app.
To better clarify my situation, I am building a Shopify app that helps with creating that particular checkout (with applied discounts) on different stores that have installed my app. Do you have any recommendations for how I could accomplish this?