Discussing APIs and development related to customers, discounts, and order management.
Hi all I'm stuck trying to build a custom private app that applies a free shipping discount whenever certain conditions are met, ie buy X get free shipping (currently free shipping can only be applied minimum purchase amount or minimum number of items so that is why I'm creating a custom private app).
Is there an easier free solution than creating a private app?
If not, would I use a graphql mutation on cart update using the storefront api?
Apologies I am a complete and utter noob. Any help would be appreciated.
Hi there 👋
If you are building your solution for a Shopify Plus store then this would be possible with Shopify Functions discount function. Only Shopify plus stores can use Shopify Functions with custom apps.
Non plus stores can use Shopify Functions in public apps. There may be an app that is already in the app store that could meet your needs.
To learn more visit the Shopify Help Center or the Community Blog.