• Resolved elarson

    (@elarson)


    The availability calendar is not showing booked dates. The bookings show in admin, whether entered manually or from the CF7 form, but not on the pages. I am running version Version 1.4.2 of WP Availability Calendar & Booking.

    This is the link to the website page: http://www.tropikalmaio.com/kaza-tropikal/

    This is an example of the availability calendar shortcode on the page: [availbooking name=”Room-1″]

    This is an example of the XML export of a booking for Room-1, so that you can see that it is in the database:
    <Booking>
    <name>Room-1</name>
    <status>3</status>
    <start_date>2015-11-15</start_date>
    <end_date>2015-11-21</end_date>
    <email>xxx@xxx.com</email>
    <phone>9999999999999</phone>
    <country>Cape Verde</country>
    <language>en</language>
    <uid>1446823604-elarson@www.tropikalmaio.com</uid>
    <number_of_persons>1</number_of_persons>
    <total_amount>€ 25,00</total_amount>
    </Booking>

    This is the CF7 form that is used in a sidebar widget:
    <p>Your Name (required)
    [text* your-name] </p>
    <p>Your E-mail (required)
    [email* your-email] </p>
    <p>Telephone Number
    [text* your-phone ]</p>
    <p>Your Country
    [select* your-country include_blank data:countries]</p>
    <p>Select room
    [booking] </p>
    <p>Check-in Date
    [text* start_date id:start_date]</p>
    <p>Check-out Date
    [text* end_date id:end_date]</p>
    <p>Number of guests
    [select* number_of_persons id:number_of_persons “1” “2”]</p>
    <p>Transportation to/from the airport [radio airport “yes” “no”] </p>
    <p>Transportation to/from the ferry port [radio port “yes” “no”] </p>
    <p>Your Message
    [textarea your-message] </p>
    <p>Subscribe to our Newsletter [mailpoetsignup mailpoetsignup-70 mailpoet_list_1 default:on] </p>
    <p>[recaptcha]</p>
    <p>[submit “Send”]</p>

    https://wordpress.org/plugins/jm-avail-booking/

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

    (@jan-maat)

    Hi,

    The booked dates are shown in the calendar. If you look in the source code of the page you see for the dates 2015-11-15 till 2015-11-20 <td class=”cal-post”>…. </div>.
    The dates without a booking have <td class=”cal_empty”> …</div>.

    The css for cal_post is:
    .cal_post {
    background-color:#F00;
    text-align:center;
    }

    In your css file you overwrite the background-color by:

    tr:nth-child(even) td,
    tr:nth-child(even) th {
    background-color: white;
    }

    Regards,

    Jan

    Thread Starter elarson

    (@elarson)

    Many thanks Jan. I had made a mistake with the specificity, but it is working now. It also helps to know the classes that you are using — I had missed them in the source.

    Hi Jan,

    I seem to have the same problem as elarson has mentioned – bookings on system seemed to be listed, thouvh not showing on webpage.

    Here’s the xml:

    -<Booking>

    <name>2marcus</name>

    <status>3</status>

    <start_date>2016-01-18</start_date>

    <end_date>2016-03-07</end_date>

    <email>synced with external</email>

    <phone/>

    <country>Israel</country>

    <language>en</language>

    <uid>-jtc9ykz9loyl–286yu788znw8@airbnb.com</uid>

    <number_of_persons>0</number_of_persons>

    </Booking>

    Should be shoiwng on this page: http://www.aloncentral.com/vacationrental/test/

    And I checked the CSS as you’ve advised too, but the color is correct “#F00” …

    Any other solutions?

    Thanks in advance!
    Azi

    Hi again,

    Just in case there is a spesific issue with the fact that booking is sync by an external calendar, here is another booking’s xml that was created on the plugin itself:

    -<Booking>

    <name>default</name>

    <status>3</status>

    <start_date>2015-11-16</start_date>

    <end_date>2015-11-17</end_date>

    <email/>

    <phone/>

    <country>Albania</country>

    <language>nl</language>

    <uid>1447691546-@www.aloncentral.com</uid>

    <number_of_persons>0</number_of_persons>

    </Booking>

    -<Booking>

    Thanks!

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi Azi,

    Your problem is different from the one of elarson.

    In your case it is a mismatch between the names of the room.

    In the xml I see the names “2marcus” and “default” while you set up the calendar as
    [availbooking name=”marcus2″]

    The plugin will search the database for booking with the name marcus2 not matching 2marcus or default.

    Regards,

    Jan

    Thanks, Jan!

    Worked like a charm 🙂

    Azi

    Hi Jan,

    It’s me again 🙂

    I’ve managed to sync airbnb calendars now, but when I try to sync a google ical or others, such as VRBO or Homeaway etc. it does not read them…

    Here is one of each that I tried to sync and doesn’t wrok:

    VRBO:
    http://admin.vrbo.com/icalendar/b6dc34dddf55477c8951f43a4dfddd1f.ics

    HomeAway:
    http://www.homeaway.com/icalendar/78de74ec96824e35ab57a9424eaea125.ics

    Google: https://www.google.com/calendar/ical/jerusalemlodges.com_3a9ugmqnnklgc2103nsq9af84g%40group.calendar.google.com/public/basic.ics

    All three calendars sync perfectly with other ical platforms…

    Was wondering if you any suggestions for this???

    Once again, your assistance in much appreciated in advance!!!
    Azi

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi Azi,

    This is my problem. VRBO and HomeAway use different keys for the dates as Airb&B and the others I tested with.
    I am working on a solution and will be back soon.

    Your google link gives me an empty calendar. I check Google with my one Google agenda.

    Sorry for the trouble,regards.

    Jan

    Thanks again Jan!

    I’ll await your next release 🙂

    As for the google calendar- that’s strange it comes up empty, but I’ll take a look again…

    Generally, should it sync properly?

    Thanks!
    Azi

    Hi again,

    I think there is an issue with the google calendars, since I tried again with a calendar which definitely has events in it and it still gives the message
    “??? not found”

    ??? being calendar name…

    https://www.google.com/calendar/ical/jerusalemlodges.com_d26q0b34mus876jc8v6a2knb3k%40group.calendar.google.com/public/basic.ics

    Thanks!

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi Azi,

    In the just released version 1.4.5 the sync with Homeway and VRBO is solved.

    On my systems the sync with Google works.
    Your last Google link gives again an almost empty file with no appointments.
    Check your security settings of the Google agenda.

    Regards,

    Jan

    Unbelievable! you’re great! Is indeed working 🙂

    (I’ll also check on my end what the issue is with the google calendar….)

    Many Thanks!!!!
    Azi

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Calendar not displaying booked dates’ is closed to new replies.