Skip to content

Commit

Permalink
fix: export filtered order listing csv (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonh3 authored and sabbir1991 committed Jun 25, 2018
1 parent 23c045c commit 52600bf
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 @@ -218,7 +218,7 @@ function handle_order_export() {
$customer_phone = esc_html( get_post_meta( $order->order_id, '_billing_phone', true ) );
$customer_ip = esc_html( get_post_meta( $order->order_id, '_customer_ip_address', true ) );
} else {
$customer_name = get_post_meta( dokan_get_prop( $order, 'id' ), '_billing_first_name', true ). ' '. get_post_meta( dokan_get_prop( $order, 'id' ), '_billing_last_name', true ).'(Guest)';
$customer_name = get_post_meta( $order->order_id, '_billing_first_name', true ). ' '. get_post_meta( $order->order_id, '_billing_last_name', true ).'(Guest)';
$customer_email = esc_html( get_post_meta( $order->order_id, '_billing_email', true ) );
$customer_phone = esc_html( get_post_meta( $order->order_id, '_billing_phone', true ) );
$customer_ip = esc_html( get_post_meta( $order->order_id, '_customer_ip_address', true ) );
Expand All @@ -231,7 +231,7 @@ function handle_order_export() {
'order_shipping_cost' => $the_order->get_total_shipping(),
'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_status' => $statuses['wc-' . dokan_get_prop( $the_order, 'status' )],
'order_date' => '"' . dokan_get_date_created( $the_order ) . '"',
'customer_name' => $customer_name,
'customer_email' => $customer_email,
Expand Down

0 comments on commit 52600bf

Please sign in to comment.