-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Coupon not valid when cart promo rule end date is today. #4401
Labels
Comments
This patch seems to work fine:
|
Please create a PR to help us checking this issue. |
fabianaromagnoli
added a commit
to fabianaromagnoli/magento-lts
that referenced
this issue
Dec 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Preconditions
Steps to reproduce
Expected result
The coupon is valid and discount is applied
Actual result
The coupon is not valid and discount is not applied
In this piece of code the coupon expiration date is compared to the current datetime, but coupon expiration date always has 00:00:00 time, so that if the expiration day is today, that check cannot pass. Dates should be compared without considering time, like it's done in the Collection where the promo validity dates are compared to $now, and $now is a date without time.
The text was updated successfully, but these errors were encountered: