• Resolved nikdow

    (@nikdow)


    We are synchronising via iCal feed from https://nikdow.cbdweb.net/
    When first installed, we created https://www.cbdweb.net/bookingcron/ called by
    0 * * * * wget --no-check-certificate "https://www.cbdweb.net/bookingcron/"
    This was working.
    Now if we visit directly the page https://www.cbdweb.net/bookingcron/ (You can try it) we see “0 events imported”. All events have been deleted from our calendar.
    Short code in this page is
    [booking-manager-import url=’https://nikdow.cbdweb.net/api/index.php?r=icalendar/ical&lodge=nikdow&room=Rm01′ from=’now’]
    We have turned on your feature: “Trash all imported bookings before new import”,
    as we are using your plugin as a read-only display of data from our own booking service. Therefore the import should trash all bookings and import them again.

    However if we enter
    https://nikdow.cbdweb.net/api/index.php?r=icalendar/ical&lodge=nikdow&room=Rm01
    into page /wp-admin/admin.php?page=wpbc-settings&tab=sync&subtab=import and click on “Import” we get “Imported of 9 events” and now all events are showing at https://www.cbdweb.net/booking/

    /wp-admin/admin.php?page=oplugins we enter the iCal URL and click on “Show Events (.ics)” we see the suggested shortcode:
    [booking-manager-listing url='https://nikdow.cbdweb.net/api/index.php?r=icalendar/ical&lodge=nikdow&room=Rm01' from='any' until='any']
    but we also see
    [WPBM Error] File does not contain events

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter nikdow

    (@nikdow)

    Not sure where the ′ is coming from, it is not visible on our wp-admin pages.
    [booking-manager-import url='https://nikdow.cbdweb.net/api/index.php?r=icalendar/ical&lodge=nikdow&room=Rm01' from='now']

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    Please update your version of Booking Manager to the latest update 2.0.14
    We just released update.
    Kind Regards.

    Thread Starter nikdow

    (@nikdow)

    Thanks for quick response, the cron page is now working!

    Still one problem however.

    Source of the iCal file is the “roof room” at https://nikdow.cbdweb.net/ You can see there that “roof room” has a booking checking out 1/3/2020.
    Our cron page has this shortcode:
    [booking-manager-import url=’https://nikdow.cbdweb.net/api/index.php?r=icalendar/ical&lodge=nikdow&room=Rm01′ from=’now’]
    You can go to that link directly of course but I’ve shown the relevant part here:

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//ZContent.net//ZapCalLib 1.0//EN
    CALSCALE:GREGORIAN
    METHOD:PUBLISH
    BEGIN:VEVENT
    DTSTART:20200227
    DTEND:20200301
    UID:[email protected]
    DTSTAMP:20200227T012011
    Description:Booking service provided by https://www.cbdweb.net
    END:VEVENT

    This booking is not showing at https://www.cbdweb.net/booking/

    Is it because the start date is “today”?

    P.S. we are using your (experimental) option to delete all bookings before importing the iCal. Did you think about using
    UID:[email protected]
    to identify and match old/new bookings from iCal?

    We also have experience with our booking system importing iCal (from Airbnb) using a PHP library. Actually that is where these bookings originate, nikdow.cbdweb.net is importing from an Airbnb iCal file. So we are experimenting with your plugin before offering it to our clients, probably using your paid version so you get some funding for it.

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello.

    1) Please be sure to use correctly import shortcode.
    Note! Please be careful in configuration of Booking Calendar shortcode with quote symbols. Do not use non standard opening or closing quot symbols. Only standard like: ‘ The best way to type them from keyboard, and not copy/paste.

    Example:

    
    [booking-manager-import url='https://nikdow.cbdweb.net/api/index.php?r=icalendar/ical&lodge=nikdow&room=Rm01′' from='today' until='any']
    

    Please check more here https://oplugins.com/plugins/wp-booking-manager/booking-manager-help/#events-import

    And of course be sure to insert there correct URL with .ics feed that is having events inside: https://nikdow.cbdweb.net/api/index.php?r=icalendar/ical&lodge=nikdow&room=Rm01′
    if this feed does not contain events, its of course will not import such events into the Booking Calendar.
    2) “Did you think about using UID:[email protected]
    Its working to make identification events by default based on the UID.
    Please note, “Trash bookings…” feature useful for situation, when you edit or delete the bookings at external sources (like booking.com). Because during import process system import only new bookings, and doesn’t update the changes. That’s why during deleting of all imported bookings. system have to import only actual bookings.

    Kind Regards.

    Thread Starter nikdow

    (@nikdow)

    Hi, the shortcode is correct in our website but is being mangled when I paste it in here. In the cron page it is functioning correctly but misses the first booking. The other bookings in the iCal feed are imported correctly. Maybe the first booking is missed because it started “today” which looks like a past date when compared with “now”?

    Plugin Author wpdevelop

    (@wpdevelop)

    It’s possible.
    Please test with other new bookings.
    Kind Regards.

    Thread Starter nikdow

    (@nikdow)

    OK, this is using live data. So I will wait until the next booking starts and check it.
    I don’t have it hooked up to linux cron yet, so I can test it at the right time.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘manual sync works but shortcode import fails’ is closed to new replies.