Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking New in 4.6.0 – Book from availability calendar – shortcode?
- This topic has 8 replies, 3 voices, and was last updated 1 week, 5 days ago by J. Davis.
- March 8, 2023 at 3:46 pm #1425703Adrian InceParticipant
Thank you for the new functionality in 4.6.0 – the ability to book from the availability calendar. This works perfectly from the accommodation page and we are delighted to see it.
However, the shortcode [mphb_availability_calendar] and the block “Availability Calendar” don’t seem to support this functionality.
Are them some undocumented options for the shortcode? Something I am missing on the block?
If the new functionality isn’t available on the shortcode and block, can this be added to the development roadmap?
Many thanks.March 9, 2023 at 3:46 pm #1426349J. DavisKeymaster
Thanks for your feedback and for our question. In order to make the calendar clickable you need to add [mphb_availability id=”777″] (Booking Form block) and [mphb_availability_calendar id=”777″] (Availability Calendar block) on the page.
John DavisMarch 13, 2023 at 3:42 am #1427427Aaron YoungParticipant
I have entered the 2 shortcodes you gave, changed the calendar ID to match my own and the availability calendar is not clickable. It only adds a second section where you can enter a check in/out date and click search which takes me to the typical check availability page.
All I need is to show the availability calendar colour coded and have the dates clickable to book in – is this possible as I cant seem to get this functionality and the update makes it sound like it should now be doable.
The website I’m trying to get this working on – https://twiceasnicechalets.co.uk/chalets/March 13, 2023 at 5:28 am #1427462Adrian InceParticipant
Hi Aaron, I notice that you have multiple accommodations on one page. Does it work with a page where there is just one accommodation?March 13, 2023 at 5:29 am #1427463Adrian InceParticipant
Thank you, that worked.March 13, 2023 at 5:47 am #1427472Aaron YoungParticipant
I created a test page, input the 2 shortcodes again and get the same result. A check availability that goes to a search that shows all chalets, and the availability calendar that isn’t clickable.
(Open image in new tab to avoid the crosslink error)
(Open image in new tab to avoid the crosslink error)March 13, 2023 at 7:07 am #1427519J. DavisKeymaster
I’ve checked your page and it looks like there is a common search form [mphb_availability_search] is added. However, each calendar requires an availability form [mphb_availability id=”777″] to become clickable. You need to add an availability form under the calendar of the same property to make the calendar clickable.
Additionally, navigate to Accommodation > Settings and activate the Skip Search Results option. It should work when this option is activated.
John DavisMarch 14, 2023 at 3:31 am #1427918Aaron YoungParticipant
I have also done some styling to hide all check-in/out/availability boxes as they are sort of redundant if people click the calendar dates they want. Now when they select a week, the price and “confirm reservation” button shows which is perfect.
For anyone interested in the same functionality(link to see how it works), I used the following CSS:
</style>March 16, 2023 at 5:39 am #1429287J. DavisKeymaster
You are welcome. Thank you for sharing your experience.
- You must be logged in to reply to this topic.