Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking How to display booking rules on front-end
- This topic has 2 replies, 2 voices, and was last updated 3 years, 6 months ago by Luciano Cicerchia.
- AuthorPosts
- May 24, 2021 at 2:50 am #1126637Luciano CicerchiaParticipant
Hi there,
I need to display the booking rules on the front end (apart from the calendar blocking the dates) as my client wants them to be displayed in a text format (kind of “During May, the minimun amount of nights to book is 2”).
How can I access to this variable? Is there a shortcode or even a way to access them through database? In case it is only through database, which table would it be?
Thanks
LucianoMay 25, 2021 at 2:47 am #1127403Andre FloresModeratorHello Luciano,
It depends on where exactly you would like to have the information displayed. Should it be displayed right above the calendar?
You may copy the reservation-form.php file from /wp-content/plugins/motopress-hotel-booking/templates/single-room-type/ directory to /wp-content/themes/your-theme/hotel-booking/single-room-type/ directory and add desired text there, e.g.:< ?php echo '
During May, the minimum amount of nights to book is 2‘ ?>
Regards,
AndreMay 25, 2021 at 2:49 am #1127405Luciano CicerchiaParticipantHi Andre,
Thanks for your quick answer. What u said can be useful indeed. But is there any chance to display the number of dates “automatically”? I mean, using the data already configured on the Booking Rules tab.
Thanks
Luciano - AuthorPosts
- You must be logged in to reply to this topic.