Title: processing date
Last modified: September 1, 2016

---

# processing date

 *  Resolved [mwestrik](https://wordpress.org/support/users/mwestrik/)
 * (@mwestrik)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/)
 * Hi,
 * Right now you can either select order date or completed date in the export.
 * is it also possible to add the “processing date”, the date he order status changed
   from pending to processing? We do need that for accounting.
 * [https://wordpress.org/plugins/woo-order-export-lite/](https://wordpress.org/plugins/woo-order-export-lite/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622533)
 * hi
 * “Processing” is not final state, so if order was completed
 * You can see only text(+ date) in order notes as
    “Order status changed from Pending
   Payment to Processing.”
 * Do you use english language?
    thanks, alex
 *  Thread Starter [mwestrik](https://wordpress.org/support/users/mwestrik/)
 * (@mwestrik)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622542)
 * yes, i do use english too.
 * the order date (pending) is for unpaid orders, “completed” is for shipped orders,
   and we use “processing” for paid orders. And that is what accounting needs.
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622575)
 * try add this code to functions.php
 *     ```
       //1. add fields to  section "Setup Fields"
       add_filter('woe_get_order_fields', 'woe_func_add_order_fields');
       function woe_func_add_order_fields($fields) {
           $fields['date_processed'] = array( 'label' => 'Date Processed', 'colname' =>'Date Processed', 'segment' => 'user', 'checked' => 1 );
           return $fields;
       }
   
       //2. prepare field for xls,csv
       add_filter('woe_get_order_xls_value_date_processed','woe_get_value_date_processed',10, 2);
       add_filter('woe_get_order_csv_value_date_processed','woe_get_value_date_processed',10, 2);
       function woe_get_value_date_processed($value,$order) {
           $args = array(
       		'post_id' 	=> $order->id,
       		'approve' 	=> 'approve',
       		'type' 		=> 'order_note',
       		'search'        => 'Order status changed from Pending Payment to Processing.',
           );
           // woocommerce hides such records by default
           remove_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10 );
           $notes = get_comments( $args );
           add_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 );
   
           $date_processed = '';
           if(!empty($notes)) {
               $date_processed = date("m/d/Y",strtotime($notes[0]->comment_date)); // to US format
           }
           return $date_processed;
       }
       ```
   
 *  Thread Starter [mwestrik](https://wordpress.org/support/users/mwestrik/)
 * (@mwestrik)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622587)
 * It worked partly. It did add the field to the export page, and it did add a column
   to my output file, but there’s no dates in there, just blanks.
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622593)
 * could you review order notes for first order?
 * do you see text “Order status changed from Pending Payment to Processing.” ?
 *  Thread Starter [mwestrik](https://wordpress.org/support/users/mwestrik/)
 * (@mwestrik)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622653)
 * problem fixed. thanks for your help!
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622677)
 * could you provide a bit more details? how did you solve it ?
 * I suppose other users can ask for this feature too
 *  Thread Starter [mwestrik](https://wordpress.org/support/users/mwestrik/)
 * (@mwestrik)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622723)
 * nothing special, i just had a typo before… So a decent copy paste of your solution
   worked.
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622725)
 * thank you!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘processing date’ is closed to new replies.

 * ![](https://ps.w.org/woo-order-export-lite/assets/icon-256x256.png?rev=1365554)
 * [Advanced Order Export For WooCommerce](https://wordpress.org/plugins/woo-order-export-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-order-export-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-order-export-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-order-export-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-order-export-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-order-export-lite/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/processing-date/#post-7622725)
 * Status: resolved