How to apply discount in cart
Hi everyone I hope you could assist me with my discount problem. Here is the scenario/conditions:
I need to apply a $20 discount on a product type (X), only when product type (Y) is also in the cart. The $20 discount is applied only once on every instance of product X in the cart. For example:
product price quantity total
Product X- large 50 3 130
Product Y 10 1 10
Product X- small 50 1 30
Thanks in advance.