Support Archive (2)

Important!!!    Check actual Support Forum, if you need to ask a Questions.

  1. Hi,
    I'm using Hotel Edition and I need to know if the following is possible:

    1. set a fixed number of range selection days but only for a specific resource (example: one resource must only be booked for 1 month period, but others can be single days)
    - i know the option in the settings aplies to all resources πŸ™
    - could it be done with a custom booking form ?
    - my only alternative is to create a filter where you can only book one specific day per month and set the price for the whole month... But this will force to choose a specific day for each month and will not allow a booking to start in the middle of the month.

    2. What's the best way to configure that a specific "page/post" has a selection of a fixed set of resources as alternative... What I want is similar to what is explained in the FAQ ( How to configure selection of booking resources using select box ) but to have it only for a specific page/post where a "top resource" has two "sub-resources" (actual booking resources)

    Thanks

    P.S. These issue pages have many interesting information, many might be duplicate and it's hard to browse all the posts to find (and learn more) from this plug-in....Can't you place all this information on one single document/FAQ to help search ? πŸ˜‰

    • Hello Rui,
      1) This type of task is require customization, and right now is not supported at actual version. Sorry.

      You can try to make this customzation inside the file ../booking/include/wpdev-premium.php inside of the function content: js_define_variables
      here is that part of code:

      <?php if ( get_bk_option( 'booking_range_selection_is_active') == 'On' ) { ?> <?php if ( get_bk_option( 'booking_range_selection_type') == 'dynamic' ) { ?> var is_select_range = 0; wpdev_bk_is_dynamic_range_selection = true; multiple_day_selections = 0; // if we set range selections so then nomultiple selections <?php } else { ?> var is_select_range = 1; <?php } ?> <?php } else { ?> var is_select_range = 0; <?php } ?>

      where you need to make customization. You need to check the point #2 from this comment, for the condition of getting some code for the only specific URL, then inside of that condition set variables for the range selections, like this:
      var is_select_range = 1;

      But this type of the customization we do not recommend todo, because right now its not supported yet, so you can make it only for your own risk.

      2) Here is little correction to that code, which is show only parent rsources in selectbox (show only time slots selection):

      You need to insert this code into the page.php file of your actual theme. Or inside of single.php file.
      <?php if ( strpos($_SERVER['REQUEST_URI'],'/boooking/') !==false ) { ?> <label for="calendar_type">Select your time:</label> <select name="active_booking_form" onchange="jWPDev('.bk_forms').css('display', 'none'); document.getElementById(this.value).style.display='block';" > <option selected="selected" value="select">Please Select</option> <?php global $wpdb; $types_list = $wpdb->get_results( "SELECT booking_type_id as id, title FROM ".$wpdb->prefix ."bookingtypes WHERE parent = 0" ); foreach ($types_list as $tl) { ?> <option value="<?php echo $tl->id; ?>"><?php echo $tl->title; ?></option> <?php } ?> </select> <?php foreach ($types_list as $tl) { ?> <div class="bk_forms" id="<?php echo $tl->id; ?>" style="display: none;"><?php do_action('wpdev_bk_add_form', $tl->id, 1); ?></div> <?php } ?> <?php } ?>

      Plase note, here <?php if ( strpos($_SERVER['REQUEST_URI'],'/boooking/') !==false ) { ?>

      You need to set some term in URL, which is exist at the your page, where you want to show booking form.

      so then from that URL you need to get some term (some unical part of that URL) and replace the '/boooking/' to that term in this code:

      <?php if ( strpos($_SERVER['REQUEST_URI'], '/boooking/') !==false ) { ?>

      So for example your URL to the page with booking form is:

      https://www.server.com/somecategory/my-booking-form/

      then you need to have the code like this:

      <?php if ( strpos($_SERVER['REQUEST_URI'], '/my-booking-form/') !==false ) { ?>

      3) This section of site will be improved in close future. thank you for suggestion.

      • Thanks... I will try some of those approaches.

        Meanwhile, I have tried some other complex resource restrictions but with no success:
        - Resource is only available for a whole month: from day X to day X in the next month - it's not always 30 days!!
        - Use range selections (example 30 days) but with a filter to exclude weekends

        Any ideas ? πŸ˜‰

        • Hello,
          sorry, right now its worked only in this simple (fixed number of days) way only.

  2. the required email address field in my basic reservation form is pre-populating with my admin email address. In fact, it is my OLD admin email address, not even my new one. How do I get this field to be completely blank so the user can input his/her email address?

    • Hello Kevin,
      its a feature of the Booking Calendar, for having auto fill fields for the logged in users. So if you are log off from your WordPress site, the fields become blank. You can update the info of your email or some other fields, like a name at the WordPress profile settings page.

      And of course you can disable this feature at the general booking settings page, by unchecking specific option and saving the settings.

  3. Good morning,

    I've purchased and installed the MultiUser version and I can't see the Booking admin in the dashboard on any role other than Admin. I've added a User as a Contributor AND as an Author and have activated both and when I log in, I do not see the Booking plugin in the Dashboard. Please help. Thanks.

    Todd

    • Hello Todd,
      this issue will be fixed in next update, but right now you are need to make this customization for be able to fix it.
      Please open this file: ../booking/lib/wpdev-booking-class.php
      Find this function declaration: dashboard_bk_widget_setup
      and inside of this function please comment this condition:
      if (current_user_can('manage_options')) {
      Just set like this:
      <strong>//</strong> if (current_user_can('manage_options')) {
      also you are need to comment, the close } symbol for that condition its before closing of function:
      <strong>//</strong>}

      2. then find this function declaration: dashboard_bk_widget_show

      and inside of the code of this function make this customization:
      from this code:
      $sql_req = "SELECT DISTINCT bk.booking_id as id, dt.approved, dt.booking_date, bk.modification_date as m_date , bk.is_new as new FROM ".$wpdb->prefix ."bookingdates as dt INNER JOIN ".$wpdb->prefix ."booking as bk ON bk.booking_id = dt.booking_id WHERE dt.booking_date >= CURDATE() ORDER BY dt.booking_date" ;

      to this:

      $my_resources = ''; if ( class_exists('wpdev_bk_multiuser')) { // If MultiUser so $is_superadmin = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); $user = wp_get_current_user(); $user_bk_id = $user->ID; if (! $is_superadmin) { // User not superadmin $bk_ids = apply_bk_filter('get_bk_resources_of_user',false); if ($bk_ids !== false) { foreach ($bk_ids as $bk_id) { $my_resources .= $bk_id->ID . ','; } $my_resources = substr($my_resources,0,-1); } } } $sql_req = "SELECT DISTINCT bk.booking_id as id, dt.approved, dt.booking_date, bk.modification_date as m_date , bk.is_new as new FROM ".$wpdb->prefix ."bookingdates as dt INNER JOIN ".$wpdb->prefix ."booking as bk ON bk.booking_id = dt.booking_id WHERE dt.booking_date >= CURDATE()"; if ($my_resources!='') $sql_req .= " AND bk.booking_type IN ($my_resources)"; $sql_req .= "ORDER BY dt.booking_date" ;

  4. Please, I need your explanation on how are the filters working.
    I would like to charge customer for 200USD per day, if the rend is more than 7 days = 100USD per day, if more than 30 days = 50USD per day.
    How can I use filters in this case?
    I have tried to make like this
    unit cost=200USD
    from 7 to 29 = 100USD
    from 30 to 365 = 50USD

    when I choose 8 days (Nov 1 to 8) I have total 1400USD
    when I choose 9 days (nov 1 to 9) I have 1500USD
    when I choose 31 days (Nov 1 to Dec 1) I have 3600
    I have no idea how to understand this and I am very tired to make experiments (now these setting are active for this page = https://truethai.info/property/ing-tharn-pool-villa/)

    I have paid version Premium Plus

    I really would like to give discounted prices for longer terms rentals, I will appreciate your help.

    • Hello.
      For the 8 days
      the cost calculated here as (first 6 days 200 per day), 7 and 8 days as 100 per day, so then we are have 6*200+100+100=1400
      For the 9 days:
      here is the same 6*200+3*100=1500
      For the 31 days
      here we have this logic: 6*200+(29-6)*100 +2*50 = 1200 + 2300 + 100 = 3600

      So you are need to have configuration of "Cost for selected days" like this, in your configuration:
      Unit cost=200USD

      Together 7 = 700USD for all days
      From 8 to 29 = 100USD per day
      Together 30 = 1500USD for all days
      From 31 to 365 = 50USD

  5. I'm are developer for website snowsherpa.com, we bought your booking calendar "hotel" edition.
    question 1. I want know how Di I use "category" and "tag"? What are they?
    question 2. How do I modify item's dispaly of booking search result list? I want to display added fields in table "bookingtypes".

    regards
    brett

    • Hello,
      1) If you are insert the booking forms into the posts or pages, which is have special tags, or its inside of special category, so then you can use these fields at the booking search form for the filter only the posts with booking forms, which is have those tags or belong to special category.
      2) You can configure the item for the search list at the Booking > Settings > Search page at the specific form., under that form you can find all supported shortcodes at the current version.

  6. Hello,
    I am using the free version of the Booking Calendar and would like to ask two questions.
    - How can I make the "Phone" field a "required" field.
    - What is the best way to reduce spam booking entries.
    Thank you

    Peter

    • Hello Peter,
      1) this feature is exist at the any paid version of Booking Calendar.
      2) you can activate the CAPTCHA at the general booking settings page.

  7. Hi there,

    I have added custom fields to my properties (rental houses), such as number of bedrooms, bathrooms, surface size, etc.. I did it using the brilliant advanced custom fields plugin.

    I would like to include these custom fields in the search function of booking calendar (Hotel Edition). For the moment the client only needs one of the fields (bedrooms) in the search, but i'd like to know how it works to add other fields as more filters are requested by the client.
    I would like my search box to display as follows:

    - Check in date
    - Check out date
    - Bedrooms (custom field, drop down list)

    I bought the Hotel version just because of the search function and i really hope this can be included with custom fields.

    Looking forward to your reply!

    Best regards,

    Simon

    • Thinking about this this seems pretty hard because the custom fields are not linked to the property, but to the page where the property is displayed.. However, is there a way to add custom fields to the properties? Is there a workaround to implement custom fields in the search functionality of booking calendar plugin?

      Simon

      • Hello Simon,
        unfortunately, right now this type of search feature filter, like in your description is not supported yet,
        but we will add this feature to todo list to have this functionality at the future update of Booking Calendar.
        Kind regards.

    • Hello,
      try to increase the memory or time for the php script execution at your server,
      or, please use the phpMyAdmin for deletion of some booking resources from the DB in table wp_bookingtypes.

  8. yes, but the range selection only works if the fixed number is less than the following "unavailability"
    for example: if I set the weekend as unavailable (using a filter or the global setting in the General tab) I can never use a range bigger than 5 !

    what i need is:
    - set range restrictions specific for each resource (minimum and max)
    - make the calendar skip unavailable (filter) days until the range is complete
    - support for an intelligent "month" range (from day X to day X)

    I will need to make a hack for this anyway If there is no other option πŸ™

    • Firstly you are need to use the range days selection using 2 mouse clicks,
      but its still will not work as at your description at current version.

  9. How do I make one resource to be available in 2 periods during the day ?

    I've added [select rangetime "09:00 - 13:00" "14:00 - 18:00"] to the form but how can I make sure that if a customer books the first time on a given day, the next customer can only book the other time slot ?

    • Hello,
      its configuration is possible only for the single resources (where capacity is= 1) at the Hotel Edition version or for any resources at the Premium and Premium Plus versions.
      This configuration is already condition for your description. Its men that if someone already booked time for specific date, other visitors can not book this time for that date, he can select only other time, otherwise warning message will show up.
      You are also will need to uncheck the "multiple days selections" checkbox at the general booking settings page to be able to select only 1 date at a time.

      • This is very restrictive because "multiple days selections" applies to ALL resources.
        This means I can't have a specific resource with half-day booking and others with normal multi day booking!
        Also, this means I can't make a booking like: "multiple days, in the morning period" πŸ™

        • Hello,
          if you want to set the single day selections only for specific resource at separate page,
          so then you can try to make this hack.
          You are need to add the JavaScript inside of the content of page, before the booking shortcode, similar to this:
          <script type="text/javascript"> var multiple_day_selections = 0; </script>