Availability problems with WPML in v4.5.13

Issue #553 resolved
Valentina R created an issue

I tested at the client’s website and it seems to be the same for the original and translated product. But the problem is in that it does not allow bookings even when there are still slots.

Case I tested with Appointments 4.5.13:

  • gCal sync is only 1-way
  • product has NO staff members assigned
  • product has total availability of 16
  • product only has 1 availability rule and NO global rules
  • the product has already been booked 2 times at 11:00 and 12 times at 14:30 on the 27.07.2019
  • On clicking on the day, the 2 slots are clickable. The slots left has the right numbers ('14 left', and ‘4 left’). When selecting any of the 2 slots, it says ‘0 places remaining’.

Here is the response from the wc_appointments_find_scheduled_day_slots call for the English version of the product:

{"availability_rules":[[{"type":"custom:daterange","range":{"2019":{"7":{"20":{"from":"17:00","to":"21:00","rule":false}}}},"priority":10,"qty":16,"level":"product","order":1,"kind_id":"55041"},{"type":"custom:daterange","range":{"2019":{"7":{"27":{"from":"11:00","to":"19:00","rule":true}}}},"priority":10,"qty":16,"level":"product","order":0,"kind_id":"55041"}]],"default_availability":false,"has_staff":false,"appointment_duration":1,"staff_assignment":"customer","min_date":1564012800,"max_date":1567296000,"partially_scheduled_days":{"2019-7-27":[1]},"remaining_scheduled_days":{"2019-7-27":[9]},"fully_scheduled_days":[],"unavailable_days":[],"restricted_days":false,"padding_days":[]}

And here is the response for the Estonian version of the product:

{"availability_rules":[[{"type":"custom:daterange","range":{"2019":{"7":{"20":{"from":"17:00","to":"21:00","rule":false}}}},"priority":10,"qty":0,"level":"product","order":1,"kind_id":"55042"},{"type":"custom:daterange","range":{"2019":{"7":{"27":{"from":"11:00","to":"19:00","rule":true}}}},"priority":10,"qty":0,"level":"product","order":0,"kind_id":"55042"}]],"default_availability":false,"has_staff":false,"appointment_duration":1,"staff_assignment":"customer","min_date":1564012800,"max_date":1567296000,"partially_scheduled_days":{"2019-7-27":[1]},"remaining_scheduled_days":{"2019-7-27":[9]},"fully_scheduled_days":[],"unavailable_days":[],"restricted_days":false,"padding_days":[]}

As you can see, the rules are not the same.

Reported here.

Comments (2)

  1. Log in to comment