-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Magento 2.2.6 coupon codes don't work anymore #18183
Comments
Hi @Cristiano81. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @Cristiano81 do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
In 2.2.5 the coupon code work |
@magento-engcom-team give me 2.2.6 instance |
Hi @Cristiano81. Thank you for your request. I'm working on Magento 2.2.6 instance for you |
Hi @Cristiano81, here is your Magento instance. |
yes i can reproduce the issue on vanilla magento |
This maybe be usefull, when i try to apply the coupon code, i received this error on chrome console: |
@Cristiano81, I have tried with vanilla Magento 2.2.6 and it is working for me, Please provide more details. |
@magento-engcom-team give me 2.2.6 instance |
Hi @Cristiano81. Thank you for your request. I'm working on Magento 2.2.6 instance for you |
Hi @Cristiano81, here is your Magento instance. |
@kunj1988 thank you, after that i created a new coupon with this attribute: after i add the test product in cart and try to apply the coupon discount, this is the result: maybe you can tell me your coupon configuration if it works |
@Cristiano81 : the coupon codes in your screenshot don't match: |
ops you are right :P but even if they are the same it doesn't work, |
Ok, I was able to reproduce, and also found out why. It has to do with the "to date". In your example, you put it in the year 2088. After some playing around, it looks like the limit is 20 years, the year 2037 works, but the year 2038 no longer works. So this is pretty strange. |
Hmm, just tested on Magento 2.2.5, it has the exact same problem, so it's not a new bug in 2.2.6. But it's certainly a problem. |
Thank you for your support! |
@Cristiano81, yes, I got the same error while adding Date with 09/30/2088 in |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @hostep so this is bug ? or we can just leave field empty? |
@engcom-backlog-nazar: the fact that the 20 year problem exist is a bug, but it seems to have already existed since Magento 2.2.0 at least (haven't tested further back). I'm still curious about the exact problem of @Cristiano81 where it worked on 2.2.5 but no longer on 2.2.6, that part hasn't been discovered yet I believe. |
@hostep the fact is very curious. After upgrade from 2.2.2 to 2.2.5 and after to 2.2.6 this coupon stopped work. |
I have encountered the same issue on 2.2.5, checked the date_to value in the salesrule table but it gives a correct value of 2019-11-26 |
Hi @shikhamis11. Thank you for working on this issue.
|
I agree with @konarshankar07 that the best/correct solution here is to change the expiration column type to a DATETIME instead of TIMESTAMP. |
Hi @henryktews. Thank you for working on this issue.
|
My client encountered this issue for one time. As far as I can tell, it is because the server configuration does not allow PUT, PATCH and DELETE request. You should contact your server guy on this and try my approach to enable all of the above request verbs. |
I am working on this at #dmcdindia19 |
@this-adarsh thank you for joining. Please accept team invitation here and self-assign the issue. |
Hi @this-adarsh. Thank you for working on this issue.
|
@magento-engcom-team give me 2.3-develop instance |
Hi @this-adarsh. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @this-adarsh, here is your Magento instance. |
Hi @Cristiano81. Thank you for your report. The fix will be available with the upcoming 2.3.3 release. |
…8183 magento#22718 - Merge Pull Request magento#22718 from this-adarsh/magento2:issue-18183 - Merged commits: 1. e965f0c
The issue still exists in Magento 2.3.2.tried to fix it using by change timestamp to datetime in db_schema.xml file
But still not fixed. |
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: