buy a product from X category and buy a product from Y category and get 15% off on the total price of two products, How to set up this?

15% should apply only to the total price of two products, not on the entire cart.

Please guide.

2 Answers 2


Go to

Admin panel -> Marketing -> Cart Price Rules


Admin panel -> Marketing -> Catalog Price Rules

Here you can add new rules for your products and add conditions for discounts.

The following link (although being Magento 1.x) may get you on the right tracks:

Create a Shopping Cart Rule - To offer 5% discount for two products or more

  • This helped me. But I couldn't find a way to apply that discount only on the total of products from X and Y categories but not on the entire cart. How can I fix this?
    – Mounika
    Apr 6, 2018 at 12:53
  • Hi. Sorry for my late reaction. Really busy atm. I'll look into it later this week, maybe I can find a solution for you. Bear with me.
    – Condor
    Apr 9, 2018 at 12:17
  • 1
    No problem. I figured it. I really appreciate your passion. Thanks. I'm gonna add answer too. Thanks once again! :)
    – Mounika
    Apr 10, 2018 at 13:37
  • Np! Your answer will sure help a lot of other people!
    – Condor
    Apr 10, 2018 at 13:56
  • 1
    Hi @bramulous, my solution is working perfectly when there is 1 product from X category and 1 product from Y category but the problem is when there are 2 products from X category and 1 product on Y category it is still calculating 15% discount on total 2*X+1*Y instead of only applying to 1*X+1*Y and bill the other 1*X fully. How to set this condition? Please help me when you have time. I have opened another thread for this question please reply there magento.stackexchange.com/questions/221586/…
    – Mounika
    Apr 11, 2018 at 5:07

I set my cart rules like below both condition and action.


enter image description here


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.