I am working on magento 1.9.1.
I am offering 50 % off if customer add product to cart from particular category (Say Category A).
In the cart page, the customer have added other category products too.
Product 1 - Category A, Product 2 - Category C, Product 3 - Category B
When we apply coupon code, its applying for all products in cart.