Discount with coupon code applied not corrected and usage history not updated

3 years ago
nopcommerce version:3.80
no private modification on discount
SQL Server version: SQL Server 2014 enterprise edition
Discription:

Scenario 1: If use one applied to categories coupon and another one applied to products coupon code when checkout the shopping cart, then both of the two coupon codes will be applied(cumulatived), but on the shopping cart page only show one discount coupon code.
After the order be placed. Go to admin area, view the discount usage then you will see only one of the two discount coupon codes be recorded the usage history, another one not updated. if you go to the order detail page to see the order info tab, look the "used discounts", there is also only one discount name.

Scenario 2: If use two discount coupon codes with the same discount type and make the "Cumulative with other discounts" checked, then only one of them could be applied.

Andrei, could have a look on these issues?
3 years ago
Hi,

Thanks.

1. Do you enter the same coupon code? Or distinct?
2. Originally it was by design. Although cumulative discounts are supported now it was done for discounts without coupon code. I've just created a new work item to support multiple coupon codes
3 years ago
a.m. wrote:
Hi,

Thanks.

1. Do you enter the same coupon code? Or distinct?[trendline]Distinct, the applied product prices be calculated on shoppingcart page is correct, but only could see one discount usage history.
2. Originally it was by design. Although cumulative discounts are supported now it was done for discounts without coupon code. I've just created a new work item to support multiple coupon codes[trendline]Great, if coupon code cannot be cumulatived, it does not make sense


Thanks, Andrei, See inline.
3 years ago
And done. Please see this commit. Thanks again!