nopCommerce icon indicating copy to clipboard operation
nopCommerce copied to clipboard

Display warning when admin enters the same discount coupon code

Open RomanovM opened this issue 1 year ago • 1 comments

nopCommerce version: 4.50

I noticed that i can define 2 discounts with same coupon code.

Source: https://www.nopcommerce.com/boards/topic/94925/duplicate-coupons

See #1462. But we should display a warning (warningValidation) when admin enters the same discount coupon code.

RomanovM avatar Sep 16 '22 08:09 RomanovM

@RomanovM I suggest to prevent having duplicates if there is an active old coupon, otherwise you can allow insert same coupon.

ahmadkq avatar Sep 16 '22 14:09 ahmadkq

Closed #6353

DmitriyKulagin avatar Sep 28 '22 09:09 DmitriyKulagin

@ahmadkq We allow that, it's used in some scenarios. For example, one coupon code for two different discounts (e.g. for some products 20% and for some products 30%). So it's by design

AndreiMaz avatar Sep 29 '22 06:09 AndreiMaz