woocommerce / woocommerce-accommodation-bookings

An accommodations add-on for the WooCommerce Bookings extension.
91 stars 31 forks source link

Fully booked days are showing as available on the accommodation's calendar #235

Closed m155y closed 1 year ago

m155y commented 4 years ago

Affected ticket(s)

2559642-zen 1502723-zen 8433091-hc 2108399-zen 6017305-zen

Note: this is a bit of a duplicate issue to #201, however I was asked to submit a new issue as the previous one has gotten a bit convoluted due to multiple issues being reported in the comment thread.

What I expected

On the selected date, there are no accommodation spots available, so I expected to see that date as unavailable/grayed out.

What happened instead

On a sold out date, when you view the calendar it looks available, however when you click on the date, you receive a message that there are zero places available and the tooltip says it is partially booked with some availability.

Screen Capture on 2019-12-13 at 14-25-16

Screen Shot 2019-12-13 at 14 26 44

Steps to reproduce the issue

  1. Create a new Accommodation Booking product
  2. Set "number of rooms available" to 1
  3. Set a price
  4. Choose a date, add to cart, and checkout
  5. Go back to the product page and observe that the booked date (which is unavailable) is showing as available until you click on it and the tooltip tells the user that there are bookings still available.
budzanowski commented 4 years ago

Reopening as we are reverting #237 .

treibalen commented 4 years ago

@tommyshellberg I still can replicate this issue with the latest Accommodation Bookings but when:

Steps to replicate:

https://d.pr/i/wdN4Ih Full Size: https://d.pr/i/wdN4Ih

It doesn't happen if I have only one resource assigned:

https://d.pr/i/kWmRvj Full Size: https://d.pr/i/kWmRvj

Please let me know if it's worth a separate bug report.