Discussing Shopify Functions development, deployment, and usage in Shopify apps.
hello,
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?
thanks!