Viewing 15 replies - 76 through 90 (of 95 total)
  • Thread Starter kmg454

    (@kmg454)

    Hi when i used
    “0”:[],”1″:[],”2″:[“Gite”,”Karsten”,”Camper”,”Kampeerplek”],”3″:[],”4″:[],”5″:[“Karsten”,”Camper”,”Kampeerplek”],”9″:[],”10″:[],”11″:[“Gite”,”Karsten”,”Camper”,”Kampeerplek”]

    The Gite must be available for booking in april, may, june, july, august and september but in my case booking is not possible in april and may.

    https://test.domaineaupiet.nl/gite-boeken/

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    The behaviour is correct as “3”:[],”4″:[] blocks all the sites and booking types. To exclude gite from blocking you must use “4”:[“Karsten”,”Camper”,”Kampeerplek”],”5″:[“Karsten”,”Camper”,”Kampeerplek”],”
    Regards,Jan

    Thread Starter kmg454

    (@kmg454)

    Hi.

    Ok i got it working now, can I type the booking type day, week also in this field?

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    Yes you may. An example “4”:[“Karsten”,”day”,”week”]

    Regards,

    Jan

    Thread Starter kmg454

    (@kmg454)

    Hi

    The day, week, weekend var is not working for my situation, because the booking type depends not only on the month but also on the kind of accommodation.

    We have the Gite which can booked in April, May and June for a day but in July and August only whole weeks.

    So if we block the booking type day in July and August there is also no day booking for the other accommodations.

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    I see. May be it is a solution to add the combination “Gite-day” meaning that only Gite is blocked for the booking type day.
    You here from me.

    Regards,

    Jan

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    I release version 1.7.0.2 with the combi option “room_name-booking_type”.
    Example “3”:[“Gite-day”]

    Regards,

    Jan

    Thread Starter kmg454

    (@kmg454)

    Hi Jan.

    This is not working for me since we use Hotel mode we have no choice for day, week or midweek we hard coded the booking type with JavaScript.
    function bookings_dagen(){
    if(document.getElementById(“dagtest”).value ==’gite’){
    document.getElementById(“booking_type”).value=’week’;
    }else if(document.getElementById(“dagtest”).value ==’karsten’){
    document.getElementById(“booking_type”).value=’week’;
    }else {
    document.getElementById(“booking_type”).value=’day’;
    }
    }
    So if we use “3”:[“Gite-week”] there is nothing to choose anymore because the gite is hard coded to week.
    I think the only way to realize what I want is doing it with a jquery or Javascript based on the datepicker, but you handle this on the server-side so I think to forget this option.

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    The test of the string “3”:[“Gite-week”] is done in jquery on the client site. See the file ctf7_datepicker_specific.js.
    So I think it works.

    Regards,

    Jan

    Thread Starter kmg454

    (@kmg454)

    If we use “3”:[“Gite-week”] or “3”:[“Gite-day”] The whole month is blocked for the Gite

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    Add document.getElementById(“booking_type”).value=’day’; as the first line of your function. I think the booking type day was undefined.

    Regards, Jan

    Thread Starter kmg454

    (@kmg454)

    No difference, maybe it’s possible to add week or day for the booking type we need instead of blocking.
    Then I don’t need my function.

    “3”:[“Gite-week”] if we want week bookings and “3”:[“Gite-day”] if we want day bookings

    Thread Starter kmg454

    (@kmg454)

    Do you see a mistake in here:

    “0”:[],”1″:[],”2″:[],”3″:[“Karsten”,”Kampeerplek”],”4″:[“Karsten”,”Kampeerplek”],”5″:[“Karsten”,”Kampeerplek”],”9″:[],”10″:[],”11″:[]

    When this is in my configuration we still can book 9 10 and 11

    Thread Starter kmg454

    (@kmg454)

    Think it had something to to with cashe memory after a few reloads it works again.

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    About your question with gite-week and gite-day. On my system if I block the week (gite-week) the day is display and the same with gite-day.
    Let me explain how it works. On the server side the plugin prepares information for the datepicker jquery script on the client. This information contains an array with the blocking info like gite-week.
    The client script reads the booking type from the element with the id “booking_type” , the room name from the element with the id “booking” and combines them as booking-booking_type. This combined value is compared with the contents of the array. If there is a match it blocks the display.

    So your script should provide the correct information into the elements booking and booking_type.

    Regards,

    Jan

Viewing 15 replies - 76 through 90 (of 95 total)
  • The topic ‘How to handle more properties’ is closed to new replies.