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.

Re: Functions - 1 discount code, different discount % dependant on product

Functions - 1 discount code, different discount % dependant on product

Trevor001
Tourist
7 0 0

Hi - is it possible to use shopify functions so customers enter one discount code at checkout & get different %discounts dependant on products in their basket.

E.g. code is test

Products a & b are 10% off

Products c & d are 30% off

We only want customers to need to remember 1 discount code

 

Replies 3 (3)

tobebuilds
Shopify Partner
527 39 139

Hi Trevor001,

 

Are you looking for guidance on how to code your own Shopify Function that does this, or are you looking for an existing Shopify Functions-based app that does this?

 

Best,

Tobe

Founder, Regios Discounts app (4.8 stars, 81 reviews, Built for Shopify)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer
Trevor001
Tourist
7 0 0

Thank you - I'm looking to understand all options of how to achieve this - so open to all suggestions.

Pogodan_
Shopify Partner
16 0 2

We have a (in development/unlisted) public functions app that can do this via product metafields to specify the discount amount - feel free to DM/contact us to get setup. We can also support custom Plus installs if you have more specialized requirements that aren't a good fit for the public app.

Pogodan | Partner Profile | Functions JSON config public/custom apps