Viewing 15 replies - 1 through 15 (of 95 total)
  • Plugin Contributor Jan Maat

    (@jan-maat)

    You can achieve this by using the Small Hotel mode.

    The settings for this mode are:
    1. In the list of Rooms you enter: name:22 where name is the name of the spot and 22 the number of spots.
    2. Select the options -Use Small Hotel mode-

    With these settings you use only one calendar. The dates in the calendr are only blocked for a given date as there are 22 different bookings for that date.
    Each date is calculated separately.

    Regards,

    Jan

    Thread Starter kmg454

    (@kmg454)

    I think there is a little bug in the system.

    Example, I have in Hotel mode a cottage:2
    So you can book only 2 cottages.
    Go to the website and book both cotages, after setting the reservations to booked I see the red blocks so 2 cotages are full booked.

    But when i removed 1 of the bookings from the dashboard and go to the website again, the red blocks are gone so i can book this cottage again.
    When try to book now we got:

    Check in datum of de Check out datum overlapt met een andere boeking.

    The only way to give the cottage free is to remove all bookings from the dashboard.

    There must be a flag what is’t reset after removing a booking.

    Plugin Contributor Jan Maat

    (@jan-maat)

    You are right. I aim looking for a solution.

    Regards,

    Jan

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi

    The bug is solved in version 1.5.7.

    Regards,

    Jan

    Thread Starter kmg454

    (@kmg454)

    Hi Jan.

    The bug is not solved, the message is gone but after booking the reservation is not in the database and we got an email what say:

    Boeking geweigerd door een gelijktijdige andere boeking.

    Boeking niet in de database door een gelijktijdig andere boeking.

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    Yes your right. Very inaccurate of me to overlook this validation point. Sorry. I was to eager to help you fast.
    In release 1.5.7.1 I solved this error and tested it more careful. This time I hope you will find it working.

    Regards,

    Jan

    Thread Starter kmg454

    (@kmg454)

    Hi Jan.

    No problem, i’m a developer myself and this happened to me also many times, you solved one and create another ??
    I was planning to create a booking calculater myself but now I found this one I will try to intergrate this.

    Maybe i have to tweak a little bit for my needs but for now it seems to cover my needs.

    The only thing missing is an option for extra costs like Children, dogs, extra blankets and so on.
    So I will see if I can make some calculate fields in contactform 7 to calculate the extra costs. It is not nessecary to store this in the database but it must be in the customers mail.

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    Keep me posted. If feasable I integrate it in the plugin.
    If you need to tweak may supply hooks/filters to make your job easier.

    Regards,

    Jan

    Thread Starter kmg454

    (@kmg454)

    Hi Jan.

    I tried to make a total amount with extra costs using some javascript as below.
    This works very well, but i want also the value of the booking include this total. So i tried to use the total_amount value but this doesn’t work

    Eind schoonmaak kosten €65,- [hidden schoonmaak “65”]
    <input type=”button” value=”Klik hier” style=”background:orange; color:black; border: 2px black solid” onclick=”this.form.totaalkosten.value=this.form.schoonmaak.value +this.form.total_amount.value; “> Om het totaalbedrag te bereken.

    Totaalkosten: €[text* totaalkosten 5/]

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    The total amount is the result of an Ajax call and special actions are needed to use this result in javascript or jQuery.
    I will look how to restructure the Ajax response in order to make it available for you.
    As soon as I found a solution I let you know.

    Regards,

    Jan

    Thread Starter kmg454

    (@kmg454)

    Hi.

    That would be great, it will make the system more flexible and useful for more customers.

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    I changed the Total Amount and Tax implementation in version 1.5.7.3.
    The hidden field’s total_amount and tax are moved from the Ajax result to the CTF7 display. Both fields have an ID total_amount and tax. You must use this ID to get the values of these fields. Jquery example $(‘#total_amount’).val();
    Before the Ajax result is received (no text about the total amount and tax) the value of both fields is 0. After the Ajax result the value contains the total amount and tax both including the currency.
    To use these values in a calculation you need to strip this currency.

    Regards,

    Jan

    Thread Starter kmg454

    (@kmg454)

    It will not calculate the total but put both values in the textfield.
    When i use * or – it works well, but using + wil not calculate.

    this.form.totaalkosten.value=this.form.schoonmaak.value + this.form.total_amount.value.slice(2).replace(/,/g, ‘.’);

    Thread Starter kmg454

    (@kmg454)

    already fixed

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    The + concatenate the variables when they are strings. Only integers are added together.
    So you must first change the values of the fields to integers as
    parseInt(this.form.schoonmaak.value) + parsInt(this.form.total_amount.value.slice(2).replace(/,/g, ‘.’));

    Regards,

    Jan

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