Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Access checkout

Solved

Access checkout

michaeltheodore
Explorer
59 6 9

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.

Accepted Solution (1)

vix
Shopify Staff
541 103 122

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.

View solution in original post

Reply 1 (1)

vix
Shopify Staff
541 103 122

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.