How to display booking rules on front-end

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1126637
    Luciano Cicerchia
    Participant

    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
    Luciano

    #1127403
    Andre Flores
    Moderator

    Hello 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,
    Andre

    #1127405
    Luciano Cicerchia
    Participant

    Hi 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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.