Redirect Check Availability button

For some reasons, you don’t want to use our booking system but still using the search form. So you want to redirect to another website when click Check Availability button. I’ll guide you how to custom this:

1. Setup child theme.

Hotel WP provides child theme after you imported demo data. Install Hotel WP Child in Dashboard >> Hotel WP >> Child Themes.

2. Deploy in child theme.

In child theme, create folder hotel-wp-child/wp-hotel-booking/search and copy file search.php to the folder (hotelwp-child/wp-hotel-booking/search/search.php)

In the file search.php, replace line 56 (file search-form.php line 67 in Hotel Booking version 1.9.7.x): <button type="submit"><?php esc_html_e( 'Check Availability', 'hotel-wp' ); ?></button>

to <a target="_blank" href="link-website"><?php esc_html_e('Check Availability', 'hotel-wp'); ?></a>

See the screenshot http://prntscr.com/iofdz8

3. Deploy in plugin Hotel Shortcodes

In folder /wp-content/plugins/thim-hotel-wp-shortcodes/hb-rooms-search/tpl/default.php replace line 179: 

$html .= '<button type="submit">' . esc_html__( 'Check Availability', 'hotel-wp' ) . '</button>';

to  $html .= '<button><a target="_blank" href="link-you-want">' . esc_html__( 'Check Availability', 'hotel-wp' ) . '</a></button>';

Done! Now your site will redirect to another website when click Check Availability button.

Best Deals
Get Eduma Now

For Only *
$439 $69

 
GRAB THE DEAL
* Hurry up! Offer ends this Friday!
close-link
ấdsa
ádasd
ádsad
Subscribe
Give it a try, you can unsubscribe anytime.
close-link
20% OFF all LearnPress premium add-ons

GET 20% OFF COUPON NOW
Your information will never be shared
close-link
Download
LEARNPRESS
WordPress LMS
Download the best WordPress LMS now. Completely Free.
close-link
Learn More