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

Booking: Date entry fields causes random prices or errors #220

Open
2 tasks
cholawo opened this issue Jun 13, 2019 · 1 comment
Open
2 tasks

Booking: Date entry fields causes random prices or errors #220

cholawo opened this issue Jun 13, 2019 · 1 comment
Labels
type: bug The issue is a confirmed bug.

Comments

@cholawo
Copy link

cholawo commented Jun 13, 2019

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.
Screen Shot 2019-06-13 at 10 20 12
Screen Shot 2019-06-13 at 10 20 50
But the last xhr request that was made shows a success message (which is what the user should be seeing)
Screen Shot 2019-06-13 at 10 20 40

You can see a video of this here: https://drive.google.com/open?id=1Lwfrx9EFmq0gbnxUwndYdDdePdE29Lw6

  • Issue assigned to next milestone.
  • Issue assigned a priority (will be assessed by maintainers).
@cholawo
Copy link
Author

cholawo commented Jun 13, 2019

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?

@vikrampm1 vikrampm1 added the type: bug The issue is a confirmed bug. label Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

2 participants