Creating a custom discount buy X get free shipping

mikesynan
Shopify Partner
3 0 1

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.

Reply 1 (1)

lizk
Shopify Staff
246 57 70

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.