Access checkout

Solved
michaeltheodore
Explorer
59 6 8

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.

0 Likes
vix
Shopify Staff
Shopify Staff
535 105 105

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

0 Likes