Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I want to add a delivery fee to a checkout. How can I do that with the Storefront API?
Specifically if a customer buys something from a merchant and their cart is under 20 bucks add delivery fee.
Solved! Go to the solution
This is an accepted solution.
Hey @michaeltheodore
Any reason why this can't be setup as a shipping rate with a threshold vs. an extra fee? Is this as well as shipping? You can't create custom products / prices on the fly with a public API. Otherwise, you can create a product called delivery fee and add that to qualifying orders with logic in the app.
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hey @michaeltheodore
Any reason why this can't be setup as a shipping rate with a threshold vs. an extra fee? Is this as well as shipping? You can't create custom products / prices on the fly with a public API. Otherwise, you can create a product called delivery fee and add that to qualifying orders with logic in the app.
To learn more visit the Shopify Help Center or the Community Blog.