date_paid

This commit is contained in:
Mike Jolley 2016-08-05 16:14:30 +01:00
parent f4727c0cae
commit 6bf05396c2
6 changed files with 9 additions and 9 deletions

View File

@ -180,8 +180,8 @@ class WC_Meta_Box_Order_Data {
}
}
if ( $order->paid_date ) {
printf( ' ' . _x( 'on %s @ %s', 'on date at time', 'woocommerce' ), date_i18n( get_option( 'date_format' ), strtotime( $order->paid_date ) ), date_i18n( get_option( 'time_format' ), strtotime( $order->paid_date ) ) );
if ( $order->get_date_paid() ) {
printf( ' ' . _x( 'on %s @ %s', 'on date at time', 'woocommerce' ), date_i18n( get_option( 'date_format' ), $order->get_date_paid() ), date_i18n( get_option( 'time_format' ), $order->get_date_paid() ) );
}
echo '. ';

View File

@ -151,10 +151,10 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
'customer_ip_address' => $order->customer_ip_address,
'customer_user_agent' => $order->get_user_agent(),
'created_via' => $order->created_via,
'customer_note' => $order->customer_note,
'customer_note' => $order->get_customer_note(),
'date_completed' => wc_rest_prepare_date_response( $order->completed_date ),
'date_paid' => $order->paid_date,
'cart_hash' => $order->cart_hash,
'date_paid' => $order->get_date_paid(),
'cart_hash' => $order->get_cart_hash(),
'line_items' => array(),
'tax_lines' => array(),
'shipping_lines' => array(),

View File

@ -135,7 +135,7 @@ class WC_API_Orders extends WC_API_Resource {
'payment_details' => array(
'method_id' => $order->get_payment_method(),
'method_title' => $order->get_payment_method_title(),
'paid' => isset( $order->paid_date ),
'paid' => 0 < $order->get_date_paid(),
),
'billing_address' => array(
'first_name' => $order->get_billing_first_name(),

View File

@ -173,7 +173,7 @@ class WC_API_Orders extends WC_API_Resource {
'payment_details' => array(
'method_id' => $order->get_payment_method(),
'method_title' => $order->get_payment_method_title(),
'paid' => isset( $order->paid_date ),
'paid' => 0 < $order->get_date_paid(),
),
'billing_address' => array(
'first_name' => $order->get_billing_first_name(),

View File

@ -179,7 +179,7 @@ class WC_API_Orders extends WC_API_Resource {
'payment_details' => array(
'method_id' => $order->get_payment_method(),
'method_title' => $order->get_payment_method_title(),
'paid' => isset( $order->paid_date ),
'paid' => 0 < $order->get_date_paid(),
),
'billing_address' => array(
'first_name' => $order->get_billing_first_name(),

View File

@ -648,7 +648,7 @@ class WC_CLI_Order extends WC_CLI_Command {
'payment_details' => array(
'method_id' => $order->get_payment_method(),
'method_title' => $order->get_payment_method_title(),
'paid' => isset( $order->paid_date ),
'paid' => 0 < $order->get_date_paid(),
),
'billing_address' => array(
'first_name' => $order->get_billing_first_name(),