• Hi,

    I am running Local Pickup Time Select which works fine.
    However, I would like to export the orders including the Local Pickup Time Select data.
    I am using Advanced Order Export For WooCommerce to export orders.
    I’ve managed to identify the field to export _local_pickup_time_select. But the data printed out in the exported file does not look like at date and time.
    How could I manage to export the data with the correct format ?

    Regards,
    L.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same issue. Looks like it prints the unix timestamp. Anyway to format date/time?

    Plugin Author Tim Nolte

    (@tnolte)

    The following code should work:

    $pickup_time_select = Local_Pickup_Time::get_instance();
    $pickup_time = get_post_meta( $order_id, '_local_pickup_time_select', true );
    $pickup_time_select->pickup_time_select_translatable( $pickup_time );
    • This reply was modified 4 years, 5 months ago by Tim Nolte.

    Thank you. I am sorry for my ignorance, but where do I add the php code you provided?

    copy it to “Custom PHP code to modify output”?

    • This reply was modified 4 years, 5 months ago by virap.
    Plugin Author Tim Nolte

    (@tnolte)

    @virap I’m not familiar with that plugin you are using, you’ll have to find in their documentation how to use custom code to format the data you are exporting. In a lot of those cases you’ll probably already have the value from the record and you’ll most likely need some function the export plugin can use to format the value. In that case something like the following would be applicable:

    public function my_format_pickup_time( $value ) {
     $pickup_time_select = Local_Pickup_Time::get_instance();
     return $pickup_time_select->pickup_time_select_translatable( $value );
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Export local pickup time’ is closed to new replies.