• Resolved colalf

    (@colalf)


    Hi,

    Thanks for a great plugin.

    Currently, I use it as a tool for booking resources (equipment), but it would be great to also use it for events. However, I find the display mode (Timeline / Calendar) quite limited when it comes to displaying several events taking place during one day (lasting 1-2 hours). The front end user can’t change between day/week/month in the timeline, and the event information available is limited to a small popover. Thus, I’m thinking of integrating events from Booking Calendar with a plugin such as WP FullCalendar:
    https://ww.wp.xz.cn/plugins/wp-fullcalendar/

    Here is a demo of how the calendar is displayed and how I would love events being displayed on my site:
    https://demo.wp-events-plugin.com/calendar/

    The plugin (WP FullCalendar) supports custom post types and taxonomies. Based on this information, is it possible to display events from Booking Calendar through WP FullCalendar? Having a booking resource named e.g. “Events” it would be great to be able to display occurences from this resource in a more user-friendly manner front end (keeping in mind the events usually last 1-2 hours and not several days). However, I’m unsure about how events from Booking Calendar are stored in the database (taxonomy, post type, tags). Where do I find documentation on this?

    Also, I noticed the .ics export possibility. However, it seems to only display upcoming events (not past events). Is it possible to show past events in the ics export?

    Best regards

Viewing 1 replies (of 1 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    1) You can check about where is saved all bookings here: https://wpbookingcalendar.com/faq/where-is-saving-booking-data-gdpr/
    I do not sure that its will be possible to make such integration with other plugin.

    2) But because Booking Calendar is support export to .ics feeds, you can use this .ics feed to import events into the other calendar plugin.

    Please check about the configuration of export .ics feeds in this FAQ instruction here https://wpbookingcalendar.com/faq/export-ics-feeds/

    3) Relative export into the .ics feed also past bookings, you can do this only with customization like this:

    Please open this file ../booking-manager/core/wpbc/wpbm-bc-export.php

    ( you can check how to edit files in WordPress menu in this article https://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/ )

    then find this code:


    function wpbm_export_ics_feed__wpbm_ics( $param = array( 'wh_booking_type' => '1', 'wh_trash' => '' ) ) { //FixIn: 2.0.2.3

    if ( ! function_exists( 'wpbc_api_get_bookings_arr' ) )
    return '';

    // // Start date of getting bookings
    // $real_date = strtotime( '-1 year' );
    // $wh_booking_date = date_i18n( "Y-m-d", $real_date );
    // $param['wh_booking_date'] = $wh_booking_date;
    // End date of getting bookings
    $real_date = strtotime( '+2 years' ); //FixIn: 2.0.7.1
    $wh_booking_date2 = date_i18n( "Y-m-d", $real_date );
    $param['wh_booking_date2' ] = $wh_booking_date2;

    and replace it to this code:


    function wpbm_export_ics_feed__wpbm_ics( $param = array( 'wh_booking_type' => '1', 'wh_trash' => '' ) ) { //FixIn: 2.0.2.3

    if ( ! function_exists( 'wpbc_api_get_bookings_arr' ) )
    return '';

    // // Start date of getting bookings
    $real_date = strtotime( '-1 year' );
    $wh_booking_date = date_i18n( "Y-m-d", $real_date );
    $param['wh_booking_date'] = $wh_booking_date;
    // End date of getting bookings
    $real_date = strtotime( '+2 years' ); //FixIn: 2.0.7.1
    $wh_booking_date2 = date_i18n( "Y-m-d", $real_date );
    $param['wh_booking_date2' ] = $wh_booking_date2;

Viewing 1 replies (of 1 total)

The topic ‘Third-party integration (calendar)’ is closed to new replies.