Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter bogger1234

    (@bogger1234)

    It took my a while to figure out how to add that code and now it’s included. But the Archive Test ist stell there.

    An error ist thrown:
    Can’t find variable site_info

    Line 2934

    <!-- TC Custom JavaScript -->
        <script type="text/javascript">
        (function($) {
    
            $('.site-header .col-md-4').append('<h1 class="site-title">' + site_info.name + '</h1><h2 class="site-description">' + site_info.description + '</h2>');
    
        })(jQuery);
    
        jQuery(function($) {
    
            if ($('.post-type-archive-projects .archive-title').length) {
                var arvTitle = $('.archive-title').text();
                var NewArvTitle = arvTitle.replace('Archives: ', '');
                $('.archive-title').text(NewArvTitle);
            }
    
        });
        </script>

    any suggestions? Thank you

    • This reply was modified 1 year, 9 months ago by bogger1234.
    Thread Starter bogger1234

    (@bogger1234)

    Thank you for your quick reply. I included your script via the Custom JS plugin and it is included in my page now, but nothing changed.

    <!-- TC Custom JavaScript --><script type="text/javascript">(function($){
    
      $('.site-header .col-md-4').append('<h1 class="site-title">'+site_info.name+'</h1><h2 class="site-description">'+site_info.description+'</h2>');
    
    })(jQuery);
    
    jQuery(function($) {
    
      if( $('.post-type-archive-projects .archive-title').length ) {
        var arvTitle =  $('.archive-title').text();
        var NewArvTitle = arvTitle.replace('Archives: ', '');
        $('.archive-title').text(NewArvTitle);
      }
    
    });
    </script>

    Could you please take a 2nd look at this?

    • This reply was modified 1 year, 10 months ago by bogger1234.
    bogger1234

    (@bogger1234)

    Couldn’t you place zero for price and change the CSS to hide the price rendering?

    Thread Starter bogger1234

    (@bogger1234)

    @jimston
    yes, of cause
    please give me an email address to send it to

    Thread Starter bogger1234

    (@bogger1234)

    one more thing:
    you have to include the labels in all languages you need in this format:

    Form fields
    {:en}First Name{:}{:fr}Prénom{:}{:de}Vorname{:}

    They are then rendered only in the language you choose.

    Thread Starter bogger1234

    (@bogger1234)

    Hello jimston,

    there are a few things you have to do:
    – install the plugins WPGlobus, WPGlobus Translate Options
    – configure WPGlobus Translate Options to use active_plugins and form_field_text
    – edit the Booking Calendar WpDevArt php files:
    — booking_calendar.php
    — booking_class.php
    — controllers/Reservations.php
    — views/Reservations.php

    I didn’t change the line esc_html($select_option)…
    This is the code I changed:
    booking_class.php line 624:
    $content .= “<span class=’form_info’><span class=’form_label’>”. apply_filters(‘the_title’, $form_fild_data[“label”]) .”</span> <span class=’form_value’>”. $form_fild_data[“value”] .”</span></span>”;

    booking_class.php line 633:
    $content .= “<h6>”.apply_filters(‘the_title’, $extra_data[‘group_label’]).”</h6>”;

    booking_class.php line 634:
    $content .= “<span class=’form_info’><span class=’form_label’>”. apply_filters(‘the_title’, $extra_data[‘label’]) .”</span>”;

    booking_class.php line 762:
    <label for=”wpdevart_’.$form_field[‘name’].'” ‘.$class.’>’.esc_html(apply_filters(‘the_title’, $form_field[‘label’])).$required. ‘</label>’;

    booking_class.php line 764:
    <label for=”wpdevart_’.$form_field[‘name’].'”>’.esc_html(apply_filters(‘the_title’, $form_field[‘label’])).'</label>’;

    booking_class.php line 792:
    <label for=”wpdevart_’.$form_field[‘name’].'”>’.esc_html(apply_filters(‘the_title’, $form_field[‘label’])).'</label>’;

    booking_class.php line 829:
    <label for=”wpdevart_’.$extra_field[‘name’].'”>’.esc_html(apply_filters(‘the_title’, $extra_field[‘label’])).'</label>’;

    booking_class.php line 838:
    $field_html .= ‘<option value=”‘.$select_option[“name”].'” data-operation=”‘.$select_option[“operation”].'” data-type=”‘.$select_option[“price_type”].'” data-price=”‘.$select_option[“price_percent”].'” data-label=”‘.apply_filters(‘the_title’, $select_option[“label”]).'”>’.apply_filters(‘the_title’, $select_option[“label”]).’ ‘.(($select_option[“price_percent”])? ‘(‘.$select_option[“operation”].(((isset($this->theme_option[‘currency_pos’]) && $this->theme_option[‘currency_pos’] == “before” && $select_option[“price_type”] == “price”) ? $this->currency : ”) . $select_option[“price_percent”] . (((isset($this->theme_option[‘currency_pos’]) && $this->theme_option[‘currency_pos’] == “after” && $select_option[“price_type”] == “price”) || !isset($this->theme_option[‘currency_pos’])) ? $this->currency : ”)).(($select_option[“price_type”] == “price”)? “” : “%”).’)’ : ”).'</option>’;

    booking_class.php line 1124:
    $form .= “<tr><td style=’padding: 1px 7px;’>”. apply_filters(‘the_title’, $form_fild_data[“label”]) .”</td> <td style=’padding: 1px 7px;’>”. $form_fild_data[“value”] .”</td></tr>”;

    booking_class.php line 1133:
    $extras .= “<tr><td colspan=’2′ style=’padding: 1px 7px;’>”.apply_filters(‘the_title’, $extra_data[“group_label”]).”</td></tr>”;

    booking_class.php line 1132:
    $extras .= “<tr><td colspan=’2′ style=’padding: 1px 7px;’>”.apply_filters(‘the_title’, $extra_data[“group_label”]).”</td></tr>”;

    booking_class.php line 1133:
    $extras .= “<tr><td style=’padding: 1px 7px;’>”. apply_filters(‘the_title’, $extra_data[“label”]) .”</td>”;

    I’m not sure if I’m allowed to share the modified files. So if you like me to send you the files trop me your email address.

    Best regards

    Thread Starter bogger1234

    (@bogger1234)

    This was fixed by the WpDevArt support team in version 1.5.4.
    Thank you for your fast support!

    Thread Starter bogger1234

    (@bogger1234)

    I investigated further, the bug can be reproduced by disabling the theme option “Enable instant approval”. As soon this is unchecked, one night bookings don’t work anymore. Your solution is not constantly working yet.

    Thread Starter bogger1234

    (@bogger1234)

    exactly the same. we had to change the code of the plugin as described above.

    Thread Starter bogger1234

    (@bogger1234)

    Hello WpDevArt support team,

    we updated to version version 1.5.3. and the above one night booking bug returned. I enabled “Calculate price for night” and did a new over night booking. But the problem is still the same. The check-out day of the 1st booking is blocking the whole day and can not be selected for the check-in date in the calendar.

    You can see a screenshot of the problem here:
    Screenshot
    Screenshot

    Best regards

    Thread Starter bogger1234

    (@bogger1234)

    I got a temporary fix for this:

    We use the plugin ‘WPGlobus’ to translate our website includes. In order to enable your forms, extras and notifications to translate we changed your code in file booking-calendar/includes/booking_class.php in the line 759:
    <label for=”wpdevart_’.$form_field[‘name’].'” ‘.$class.’>’.esc_html(apply_filters(‘the_title’, $form_field[‘label’])).$required. ‘</label>’;

    This allows us to include the table name in your form as:
    {:en}First Name{:}{:fr}Nom de Famille{:}{:de}Nachname{:}

    The output is then correct for each language on the website.

    We’re not sure this is the best approach, though.
    Any recommendations?
    Best regards

    Thread Starter bogger1234

    (@bogger1234)

    Hello WpDevArt support team,

    thank you for your extremely fast support! The minor big is solved with your version 1.5.2.

    Best regards

    Thread Starter bogger1234

    (@bogger1234)

    Hello WpDevArt support team,

    it works now!

    Thank you again for your help. I did a fresh install and that works now.
    I did uninstall the existing plugin installation, deleted the plugin and did a fresh reinstall. That did the trick. Your plugin is now working for room bookings.

    I just found a minor bug while testing, but not a show stopper.
    If you select two days and then click again on another date (a 3rd click), the selection disappears and the form shows errors. I took another screenshot, maybe that is helpful for your support.
    Screenshot

    Best regards

    • This reply was modified 8 years, 1 month ago by bogger1234.
    Thread Starter bogger1234

    (@bogger1234)

    Thank you for your reply!
    I installed the plugin version 1.5.1.

    I enabled “Calculate price for night” and did a new over night booking. But the problem is still the same. The check-out day of the 1st booking is blocking the whole day and can not be selected for the check-in date in the calendar.

    You can see a screenshot of the problem here:
    Screenshot

    Is there anything I need to do?

    Best regards

    Thread Starter bogger1234

    (@bogger1234)

    Sorry to come back to you on this.
    I switched on the option “Calculate price for night”.

    Then I booked one room from October 22, 2016-October 24, 2016. The price is calculated for the night correctly. But thats not the problem. The problem is, the next booking does not work!

    Now I can not select the October 24, 2016 for a 2nd booking for October 24 – 2016-October 25, 2016.

    The October 24, 2016 is marked in your calendar and can not be selected!

    Is there anything else to fix this?
    Otherwise your plugin is not usable for room bookings.

Viewing 15 replies - 1 through 15 (of 24 total)