How to create discount "If product X is in cart, then Y% discount is applied to Z collections"?

I am trying to create a discount that doesn’t seem to be available with the built in Shopify functionality.

I am creating a membership product, and what I would like to do is that if the membership product is in the cart, then all regular priced items in the cart will be discounted by a %.

Buy X Get Y doesn’t fit because you have to specify the quantity for Y, whereas I would like to leave it open such that the Y can be any quantity.

Is there any simple way to do this? Either via Shopify directly or do you have any specific app suggestions that can achieve this?

Is there any simple way to do this? Either via Shopify directly or are there any specific apps that can achieve this?

There are several third-party Shopify apps available that offer advanced discounting and promotion features. Some of these apps might provide the ability to apply a discount to regular priced items in the cart if a specific product (your membership product) is present. Apps like “Bold Discounts” or “Discount Ninja” could be worth exploring.

Hi @ac0 , have you found a solution for this yet? Were are trying to achieve something similar and it would be interesting if you were able to solve this yet and if so - how?

Thanks in advance!

Moritz from Coffee Circle

One workaround I ended up using was to create multiple different codes that will handle the different quantities that could be in the cart.

So for example:

MEMBERCODE1: Buy Membership, Get 1 product in ALL Collection 20% off

MEMBERCODE2: Buy Membership, Get 2 products in ALL Collection 20% off

MEMBERCODE3: Buy Membership, Get 3 products in ALL Collection 20% off

… and so on