Booking Calendar 

2.9
5 stars
4 stars
3 stars
2 stars
1 star
This WordPress plugin will enable online booking services for your site. Visitors to your site will be able to check availability of apartments, houses, hotel rooms, or services you offer. They can also make reservations and appointments with the ability to choose from multi-day, single day, or by the hour booking. Your clients can even view and register for upcoming events. With integrated Paypal

Sometimes installing a plugin doesn’t go smoothly, they don’t play nice with each other because of JavaScript conflicts or whatever. Here’s an Example;

Booking calendar for this resource are already at that page

Message flashes up briefly before fading. Here’s a Fix; probably not technically the best way but it worked for me…

Go into your Plugin Editor, find the wpdev-booking.php file in the plugin subfolder directory. Scroll down to around line 3750 of the code, (around about 2/3rds to 3/4rs of the file) and comment out the section that calls the javascript.

// Add booking type field
$form      .= ‘<input id=”bk_type’.$my_boook_type.’” name=”bk_type’.$my_boook_type.’” class=”" type=”hidden” value=”‘.$my_boook_type.’” /></div>’;
$submitting = ‘<div id=”submiting’.$my_boook_type.’”></div><div id=”form_bk_messages’.$my_boook_type.’” ></div>’;

$res = $form . $submitting;

$my_random_id = time() * rand(0,1000);
$my_random_id = ‘form_id’. $my_random_id;
//name=”booking_form’.$my_boook_type.’”
$return_form = ‘<div id=”‘.$my_random_id.’”><form  id=”booking_form’.$my_boook_type.’”   method=”post” action=”"><div id=”ajax_respond_insert’.$my_boook_type.’”></div>’ .
$res . ‘</form></div>’;

/*
if ($my_selected_dates_without_calendar == ” ) {
// Check according already shown Booking Calendar  and set do not visible of it
$return_form .= ‘<script type=”text/javascript”>
jWPDev(document).ready( function(){
var visible_booking_id_on_page_num = visible_booking_id_on_page.length;
if (visible_booking_id_on_page_num !== null ) {
for (var i=0;i< visible_booking_id_on_page_num ;i++){
if ( visible_booking_id_on_page[i]==”booking_form_div’.$my_boook_type.’” ) {
document.getElementById(“‘.$my_random_id.’”).innerHTML = “‘.__(‘Booking calendar for this booking resource are already at the page’,'wpdev-booking’).’”;
jWPDev(“#’.$my_random_id.’”).fadeOut(5000);
return;
}
}
visible_booking_id_on_page[ visible_booking_id_on_page_num ]=”booking_form_div’.$my_boook_type.’”;
}
});
</script>’;
}

*/
return $return_form;
}

Voila – upon fixing this you should now be able to see the booking form WITH the calendar. Let me know if you have any problems with the Booking Calendar not showing.

Enhanced by Zemanta
Share your knowledgebase:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
Share →

2 Responses to WordPress Tricks and Hacks – Booking Calendar Wont Show

  1. Works like a charm! Thank you!