Product discount for some specific collection #545
phamquyetthang
started this conversation in
Feedback: Discounts APIs
Replies: 1 comment
-
You can solve this problem by using inCollections instead of inAnyCollection in your input.graphql. Additionally, you need to define your DiscountApplicationStrategy as ALL and specify multiple targets that will receive different discounts. This approach allows us to create multiple discounts that apply all at once using just one form and one DiscountNode. If you need some inspiration, you can check out our app at the following link: https://apps.shopify.com/discount-genie |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I see that currently the Product Discount API's Input does not allow me to get the collections id and tag id of the product, so I am having difficulty creating a discount app for my purposes.
My case:
Products in collection A will receive a 5% discount.
Products in collection B will receive a 10% discount.
Products that do not belong to these collections but belong to tag C will receive an 8% discount if you buy 2 or more products.
I see that if I use variables in input queries for inAnyCollection, it will filter out all products in a collection from the beginning, so I don't know how I can implement the above logic.
Hope you can help, thank you !
Beta Was this translation helpful? Give feedback.
All reactions