• Resolved mittultechnobrave

    (@mittultechnobrave)


    Hello Guys ..

    I am using VikBooking Hotel Booking Engine & PMS with Version 1.6.7 and my WordPress version is 6.4.3 and my PHP version is 8.1.

    My plugin is working fine but I want to override the templates now.

    I am able to override room list template but I am struggling to override VikBooking Search Form widget. Here is what I have done so far.

    I am trying to override VikBooking Search Form by following this documentation https://vikwp.com/support/knowledge-base/vik-booking/customization-tips/pages-overrides.

    But When I refresh the page .. My dummy text is not showing.

    I created my default.php here /var/www/html/wordpress-hotel/wp-content/uploads/vikbooking/overrides/modules/mod_vikbooking_horizontalsearch and then put this in the file like this “test my name” just above the “<div class=”vbmodhorsearchmaindiv <?php echo $wrapper_class; ?>”>” and then saved the file.

    And when I refresh the page where I am seeing the search form my dummy text “test my name” is not showing.

    Can someone guide me what I am doing wrong here.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hello,

    Thanks for your detailed message. The steps you took are totally correct, but widgets/blocks, unlike the main Views rendered through Shortcodes, require you to actually select the layout file you want to display through an apposite drop down menu available from the widget/block settings. In this case you want to select the layout file from your override path, which will be available for selection as long as an override exists.

    Also, using the manual technique for creating overrides will work just fine, but we’ve built the Override Manager, which is a tool available in the Configuration page of VikBooking, from which you can easily create an override, deactivate it temporarily, activate it or remove it, without needing to work on files. The tool’s UI will just do all the operations on files for you.

    We hope this helps!

    The VikWP Team

    Thread Starter mittultechnobrave

    (@mittultechnobrave)

    Thanks for your reply.

    I went to “Global” -> “Configuration” page but I cant find “Override Manager” in that page. Here is my screenshot how this page looks like.

    I did not understand about the point in which you suggested to use layout file ? What I need to do or change ? Can you please explain me.

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    The Overrides Manager is in the first tab “Main Settings” of the Configuration page. You will find it on the bottom-right section of the page.

    Instead, for having the widget/block load your override file, you need to select the apposite layout from the widget/block settings. If you are using the Gutenberg block “VikBooking Search Form”, scroll to the “Advanced” section of the settings, and from the Layout drop down menu choose “Default (override)”. The same “Layout” setting is available in the legacy widget in case you are not using the native Gutenberg block.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘VikBooking Search Form – Page Overrides not working’ is closed to new replies.