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

Allow coupons to be used more than once by the same customer #947

Open
georgij- opened this issue Jul 26, 2022 · 0 comments
Open

Allow coupons to be used more than once by the same customer #947

georgij- opened this issue Jul 26, 2022 · 0 comments
Milestone

Comments

@georgij-
Copy link

Hi everyone!

Has anyone had to implement a similar scenario to this one?

Currently, when a customer uses a coupon, the next time that the same users tries to use that coupon receives the message "You can use the same promo code only once."

I found that the validation is being done in

plugins\offline\mall\classes\traits\cart\Discounts.php

Would altering the validation condition there be a good start? I already added my logic to check if it's the correct coupon and it allows it to be used, adding it to the cart and the order itself.

Open to suggestions/ideas, eventually would like to contribute that logic to the core - if needed/requested.

Thanks.

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