• Resolved tallyberto

    (@tallyberto)


    Hi All,

    Wondering if you can help.

    I have installed WooCommerce appointments plugin.

    I can export everything I require, apart from one very important field – the date the user has selected for the appointment.

    This is the field > https://imgur.com/a/LXSxJ

    I have tried asking the support team for the plugin but they do not get back to me. Does anyone know please??

    Thank you

    • This topic was modified 8 years, 4 months ago by tallyberto.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi

    What plugin do you use exactly ?
    thanks, Alex

    Thread Starter tallyberto

    (@tallyberto)

    Hi Alex,

    Please see link below:

    https://bizzthemes.com/plugins/woocommerce-appointments/

    Many Thanks
    Bryn

    Plugin Author algol.plus

    (@algolplus)

    hi Bryn

    it’s not a free plugin.

    Could you submit ticket and attach this plugin as zip file ?

    thanks, Alex

    Thread Starter tallyberto

    (@tallyberto)

    Hi Alex,

    Ticket has been submitted.

    Thank you
    Bryn

    Plugin Author algol.plus

    (@algolplus)

    following code solved the problem

    add_filter('woe_get_order_product_fields', function($fields) {
        $fields['app_date'] = array('label'=>"Appointment Date",'colname'=>"Appointment Date",'checked'=>1);
        return $fields;
    });
    
    add_filter('woe_get_order_product_value_app_date', function ($value,$order, $item, $product,$itemmeta) {
        $appointment_ids = WC_Appointment_Data_Store::get_appointment_ids_from_order_item_id( $item->get_id() );
        $first_app_id = array_shift($appointment_ids); // take first appointment only?
        if( $first_app_id ) {
            $appointment = new WC_Appointment( $first_app_id );
    	$value = $appointment->get_start_date();
        }
        return $value;
    }, 10, 5);
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WooCommerce Appointments’ is closed to new replies.