• Resolved nicolare

    (@nicolare)


    Good evening I need the list of theme hooks to modify the header of each apartment, and i would like to know if it is possible to set bookings per week
    a thousand thanks

    • This topic was modified 1 year, 8 months ago by nicolare.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    Thanks for contacting us. If you wish to modify the top section generated by a shortcode of type “Room Details” in Vik Booking, then you should not rely on “theme hooks”, especially because Vik Booking works with any WordPress theme. Although there are several hooks available within our plugin, the best solution to modify the HTML code generated by each page in Vik Booking is to use the “overrides” technique.

    Basically, every page or widget rendered by our plugin is actually a “View”. This is because Vik Booking is written according to the MVC pattern of PHP. What you need to do is to identify the name of the “View” (page or widget) that you would like to edit, copy the original default.php file onto the apposite override directory, and modify the copied file so that no future updates will ever touch your changes.

    You can find more information and instructions on our official website, by visiting the Knowledge Base section of Vik Booking, and then the section “Customization Tips”, where you will find the instructions on how to create overrides for your pages.

    Also, this practice is useful if you need to perform drastic changes to the HTML or JS structure of the page. Not sure what you mean with “modify the header of each apartment”, but if that’s just something related to styling, then using the apposite CSS file for customization in Vik Booking (or by adding custom CSS rules through your WordPress Theme) will be sufficient, and no page overrides will be required.

    We hope this helps!

    The VikWP Team

    Thread Starter nicolare

    (@nicolare)

    a thousand thanks
    I would like to know if with the free version it is possible to set reservations from Saturday to Saturday and if it is possible to change the price from week to week

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    No, unfortunately the Free version does not support booking restrictions, I’m sorry. This is a function available only in the paid version of the plugin. By creating a new Restriction rule, you could set every week-day except Saturday as closed to arrival (CTA) and closed to departure (CTD), so that bookings will only be allowed from Saturday to Saturday. This is a OpenTravel standard protocol for transmitting the booking restrictions to the various OTAs eventually connected through our Channel Manager, and of course the same functions are available for direct bookings on your website through Vik Booking.

    What you can do already with the free version is to only define weekly rates from the page Rates Table. Without specifying any costs for 1, 2, 3, 4, 5 and 6 nights of stay, bookings for less than 7 nights will not be allowed. However, if you are willing to upgrade to the Pro version of the plugin, then we always recommend defining also the base cost per night, and then thanks to the Restrictions, you can guide your guests to book weekly stays from Sat to Sat or for any other combination of days.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘hook of pluging’ is closed to new replies.