Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
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.
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development 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.
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog