• Resolved patresko

    (@patresko)


    Hello,

    I would like to ask you if is possible to change my bookings behaviour. Specially canceling events. I would like to give users opportunity to cancel event till date of start of this event not to date of ticket availability.

    I did changes in my-bookings.php where I deleted part of -> has_open_time() I was able to cancel events all the time. But this is not what I’m looking for. I would like to have option to cancel of event only to date when event will start. When event started I would like to get updated status of event to “Ended” and no more options to cancel event after start date.

    if( !in_array($EM_Booking->booking_status, array(2,3)) && get_option('dbem_bookings_user_cancellation') && $EM_Event->get_bookings()->has_open_time() )

Viewing 5 replies - 1 through 5 (of 5 total)
  • caimin_nwl

    (@caimin_nwl)

    Hi,

    Do you want to tie this into the booking cut-off time that’s set on the Add / Edit Event page?

    Thread Starter patresko

    (@patresko)

    Yes that’s exactly I want to be able cancel reservation till date of beginning of events not tickets.

    caimin_nwl

    (@caimin_nwl)

    In that case you’d need to include a reference to $EM_Event->$rsvp_end (which is the booking cut-off date) within your code.

    Thread Starter patresko

    (@patresko)

    Can you tell me where exactly?

    That code bellow doesnt work

    if( !in_array($EM_Booking->booking_status, array(2,3)) && get_option('dbem_bookings_user_cancellation') && $EM_Event->get_bookings()->$EM_Event->$rsvp_end )

    caimin_nwl

    (@caimin_nwl)

    Unfortunately, we’re not able to go into too much detail with custom coding. That said, you’d need to compare $EM_Event->$rsvp_end with the current time / date to see whether the booking cut-off date is passed or not.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘My Bookings’ is closed to new replies.