Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discount Coupon code support for guest users #7345

Closed
yeumatbeo opened this issue Sep 24, 2024 · 1 comment
Closed

Discount Coupon code support for guest users #7345

yeumatbeo opened this issue Sep 24, 2024 · 1 comment

Comments

@yeumatbeo
Copy link

nopCommerce version: 4.6

Steps to reproduce the problem: I've enabled the discount coupon code, and it works well for registered accounts. However, an issue arises with guest users. The problem comes from the function: ApplyDiscountCouponCodeAsync(Customer customer, string couponCode). For guest users, the system doesn’t behave correctly. For example, when guest user A adds a discount coupon code, guest user B will also have the same coupon applied, even though user B hasn't added it themselves. The system can't differentiate between guest users A and B when applying the coupon code.

@AndreiMaz
Copy link
Member

AndreiMaz commented Sep 25, 2024

@yeumatbeo It cannot be repuniroduced. Each guest has unique customer records (a [Customer] table). And discount codes are saved for the current customer (guest) only

P.S. Already duplicated at https://www.nopcommerce.com/en/boards/topic/100944/discount-coupon-code-support-for-guest-users (please discuss there for more information)

@AndreiMaz AndreiMaz closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants