multiple to handle?

Shopify Partner
30 1 5


apologies for bit of a newbie question. i'm working my way through the tutorials and implementing the discount function in my own app. I want to create multiple discounts - and thats easy enough to do, and I've read you can have up to 5 of them.


In my function code, what is best way to select the discount I want to use? i only want to apply one of the discounts - but how do instruct that it is discount-2 or discount-3 or whatever? do i tag each discount with a metafield entry and the go looking for that metafield based on certain criteria? 



Replies 0 (0)