- This topic has 2 replies, 2 voices, and was last updated 8 months ago by Luciano Cicerchia.
- May 24, 2021 at 2:50 am #1126637Luciano CicerchiaParticipant
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?
LucianoMay 25, 2021 at 2:47 am #1127403Andre FloresModerator
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‘ ?>
AndreMay 25, 2021 at 2:49 am #1127405Luciano CicerchiaParticipant
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.
- You must be logged in to reply to this topic.