You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I enter dates in the checkout date fields and see the total price.
What happened instead
I see a flash of different prices and error messages. Sometimes the last one displayed is the right, and other times it is wrong.
Steps to reproduce the issue
Attempt to make a booking with "Calendar display mode" set to "display calendar on click". Click the calendar for the start date, but attempt to enter the checkout date manually using the date fields.
For each keypress in the date fields, an xhr is sent to admin-ajax, and the response of whichever xhr request returns last is displayed to the user. So if 5 keystrokes ago the response was an error message but that response returns last, then that's the response the user sees.
This is happening on a live site, however in local testing the xhr responses come back in the order they were sent so I don't see this issue locally.
Here the 4th to last xhr response contains an error message, but it is returned last.
But the last xhr request that was made shows a success message (which is what the user should be seeing)
I have found that this issue also exists if you click different options in quick succession on the date picker calendar. I also expect someone will tell me that this is an issue with woocommerce bookings? However given that it's a private repo I can't raise an issue there. Does that mean I have to go through woocommerce support?
What I expected
I enter dates in the checkout date fields and see the total price.
What happened instead
I see a flash of different prices and error messages. Sometimes the last one displayed is the right, and other times it is wrong.
Steps to reproduce the issue
Attempt to make a booking with "Calendar display mode" set to "display calendar on click". Click the calendar for the start date, but attempt to enter the checkout date manually using the date fields.
For each keypress in the date fields, an xhr is sent to admin-ajax, and the response of whichever xhr request returns last is displayed to the user. So if 5 keystrokes ago the response was an error message but that response returns last, then that's the response the user sees.
This is happening on a live site, however in local testing the xhr responses come back in the order they were sent so I don't see this issue locally.
Here the 4th to last xhr response contains an error message, but it is returned last.



But the last xhr request that was made shows a success message (which is what the user should be seeing)
You can see a video of this here: https://drive.google.com/open?id=1Lwfrx9EFmq0gbnxUwndYdDdePdE29Lw6
The text was updated successfully, but these errors were encountered: