1

I created a 10% discount for order total. But I want to ignore it for a specific category. Any short ways to achieve this?

Thanks in advance.

Kuzgun
  • 4,649
  • 4
  • 34
  • 48
  • Post some code. We have no idea what you're talking about. Also which part you have trouble with? – Sriram Sakthivel Apr 16 '15 at 15:25
  • Well, you should have your order linked to category and than check it. Or you want to give discount if all items are in discount categories? – Pavel Pája Halbich Apr 16 '15 at 15:25
  • @SriramSakthivel this is not custom module, I'm creating using standard NopCommerce admin interface. – Kuzgun Apr 16 '15 at 15:28
  • @PavelPájaHalbich, I want to apply discount to all products except one category. – Kuzgun Apr 16 '15 at 15:29
  • Are all categories objects or is it an enum? If they are objects (every category has its own class), then why not add a Discount property, that contains the 10% for all but one. Perhaps even have a base class to not duplicate the code. – Alex Endris Apr 16 '15 at 15:37

1 Answers1

1

You could achieve your goal assigning the discount to all categories except the only one that shouldn't be affected. So the properties should be

Discount Type: Assigned to categories
Assigned to categories: CategoryA CategoryB CategoryC
faby
  • 7,394
  • 3
  • 27
  • 44