• Resolved shreefbeh

    (@shreefbeh)


    Hello, we are writing a new plugin to extend the UI of woocommerce bookings plugin, and we need to have a function that we give the “start_date”, “end_date”, “resource_id”, to give us back the available slots ( in date/time format )
    I have tried to use both
    $blocks= $product->get_blocks_in_range( $start_date, $end_date, array(), $resource, array(), $get_past_times );
    $available_blocks = $product->get_time_slots( $blocks, $resource, $start_date, $end_date, true );
    but both gave me slots in a format that can’t be used , something like :
    9400
    42004
    -3440
    I couldn’t understand what is that, I need dates here

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘woocommerce bookings get resource available slots’ is closed to new replies.