Issue:
I have working Shopify function and app installed on my development store for testing. During testing I find that the app works as intended, BUT …
It will not “stack” discounts in particular BOGO discounts. So I have created in the Shopify Web Admin UI a BOGO discount:
And it only “works” when I add two or more of the product that is NOT being discounted by the Shopify Function.
Is there a way to add another function that will also add “free” products if the quantity of products in a collection is 2 ?
In other words, if I add the “bogo” functionality to another Shopify function but share the same app name, will things just “work” ?
The desired behavior is that the one product gets the membership discount and if the cart has that and any other product in the same product collection a free product is added of the second product. This is now possible and in production with Shopify Scripts and an automatic discount in my live store. But I want a Shopify Functions solution.
And yes, the function has:
discountApplicationStrategy: DiscountApplicationStrategy.All,
api_version = “2024-01”
Please Advise.
Thanks.