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.

Product discount for some specific collection

Product discount for some specific collection

phamquyetthang
Shopify Partner
5 0 0

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 !

Replies 0 (0)