[NSFW] Room block
-
I am facing an issue on my hotel booking website built with the WP Hotel Booking plugin.
Here’s the problem:
I have one Flat and multiple Rooms linked to it.
Example:
Flat 100 (Post ID: 1907)
Room 101 (1909)
Room 102 (1904)
Room 103 (2081)
I need the following logic to work automatically:
When Flat 100 is booked on a date → all its linked rooms (101, 102, 103) should be automatically blocked/unavailable for that same date range.
When any linked room (101, 102, 103) is booked → Flat 100 should also be blocked/unavailable for that same date range.
This should reflect in the Hotel Search Result page immediately (example: https://u3322181.ct.sendgrid.net/ls/click?upn=u001.fOQZkSVVsJmtmjDpfa2B-2FuWM8qSpJRqxiFWn9FCvDAlhGuRCwH29PKgET5xntjIrtacTcubvIA-2FnwoDuNtp2aw-3D-3DOUwR_wmc-2BViHeaSAOdjPZKiSJ-2FQJOIT-2FmJyOwXYwlTJBkSwZ0QEwdaJgh3tHtg7-2FwIUK1x08LzdJ4GivQepR14f-2FNZFh-2FzuNeL9veP3HedFwr5HTn5p0sAMp7B3NRN-2BYRgNTKRAtNkF6ofcKQZG4Va9VAK50HHz-2FysmQuFsbqw3TSyG5Sy73MGLMSBxPd-2FBB-2BdQWs0TyMlEu-2FmZKG-2BOKJP61JfA-3D-3D
).
Currently, even if the flat is booked, the linked rooms are still showing as available — so the blocking logic isn’t working.
Please check and provide a fix or working code that hides the linked rooms/flats properly when booked for overlapping dates.
Thanks & Regards,
ArunThe page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘[NSFW] Room block’ is closed to new replies.