Skip to content

Commit

Permalink
fix: vendor order export date column not showing properly in csv format
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Jun 22, 2018
1 parent 3ab34e4 commit f0e279d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/template-orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function handle_order_export() {
'order_payment_method' => get_post_meta( $order->order_id, '_payment_method_title', true ),
'order_total' => $the_order->get_total(),
'order_status' => $statuses['wc-' . dokan_get_prop( $the_order, 'status' )],
'order_date' => dokan_get_date_created( $the_order ),
'order_date' => '"' . dokan_get_date_created( $the_order ) . '"',
'customer_name' => $customer_name,
'customer_email' => $customer_email,
'customer_phone' => $customer_phone,
Expand Down Expand Up @@ -232,7 +232,7 @@ function handle_order_export() {
'order_payment_method' => get_post_meta( $order->order_id, '_payment_method_title', true ),
'order_total' => $the_order->get_total(),
'order_status' => $statuses[dokan_get_prop( $the_order, 'status' )],
'order_date' => dokan_get_date_created( $the_order ),
'order_date' => '"' . dokan_get_date_created( $the_order ) . '"',
'customer_name' => $customer_name,
'customer_email' => $customer_email,
'customer_phone' => $customer_phone,
Expand Down

0 comments on commit f0e279d

Please sign in to comment.