grandnode / grandnode2

Open-Source eCommerce Platform on .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, LiteDB & Vue.js
https://grandnode.com/
GNU General Public License v3.0
1.06k stars 435 forks source link

When we apply discount coupon code at cart even though valid products are not present cart , but message shows coupon code applied #434

Open jithendraprasad9999 opened 10 months ago

jithendraprasad9999 commented 10 months ago

In cart we have discount box where we add coupon codes, if we apply some random coupon codes which are not expired , we will get a message saying coupon code applied, This message leads lot of confusion to customer

KrzysztofPajak commented 9 months ago

Hi @jithendraprasad9999 Could you explain what does it means: "if we apply some random coupon codes" Is there possible to reproduce on the demo ?

jithendraprasad9999 commented 9 months ago

@KrzysztofPajak , Yes we can reproduce.

This leading a confusion to us

KrzysztofPajak commented 9 months ago

@jithendraprasad9999, we have decided to leave this feature open for customization by the customer. You can create a new validator for the DiscountCouponModel and implement your own validation logic based on the contents of the cart.