IP and notes

This commit is contained in:
Mike Jolley 2016-08-08 16:24:16 +01:00
parent a8759fc0aa
commit 7b0d9a3e61
6 changed files with 11 additions and 11 deletions

View File

@ -148,7 +148,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
'payment_method' => $order->get_payment_method(),
'payment_method_title' => $order->get_payment_method_title(),
'transaction_id' => $order->get_transaction_id(),
'customer_ip_address' => $order->customer_ip_address,
'customer_ip_address' => $order->get_customer_ip_address(),
'customer_user_agent' => $order->get_user_agent(),
'created_via' => $order->created_via,
'customer_note' => $order->get_customer_note(),

View File

@ -161,8 +161,8 @@ class WC_API_Orders extends WC_API_Resource {
'postcode' => $order->shipping_postcode,
'country' => $order->shipping_country,
),
'note' => $order->customer_note,
'customer_ip' => $order->customer_ip_address,
'note' => $order->get_customer_note(),
'customer_ip' => $order->get_customer_ip_address(),
'customer_user_agent' => $order->get_user_agent(),
'customer_id' => $order->get_user_id(),
'view_order_url' => $order->get_view_order_url(),

View File

@ -199,8 +199,8 @@ class WC_API_Orders extends WC_API_Resource {
'postcode' => $order->shipping_postcode,
'country' => $order->shipping_country,
),
'note' => $order->customer_note,
'customer_ip' => $order->customer_ip_address,
'note' => $order->get_customer_note(),
'customer_ip' => $order->get_customer_ip_address(),
'customer_user_agent' => $order->get_user_agent(),
'customer_id' => $order->get_user_id(),
'view_order_url' => $order->get_view_order_url(),

View File

@ -205,8 +205,8 @@ class WC_API_Orders extends WC_API_Resource {
'postcode' => $order->shipping_postcode,
'country' => $order->shipping_country,
),
'note' => $order->customer_note,
'customer_ip' => $order->customer_ip_address,
'note' => $order->get_customer_note(),
'customer_ip' => $order->get_customer_ip_address(),
'customer_user_agent' => $order->get_user_agent(),
'customer_id' => $order->get_user_id(),
'view_order_url' => $order->get_view_order_url(),

View File

@ -451,10 +451,10 @@ class WC_Emails {
public function customer_details( $order, $sent_to_admin = false, $plain_text = false ) {
$fields = array();
if ( $order->customer_note ) {
if ( $order->get_customer_note() ) {
$fields['customer_note'] = array(
'label' => __( 'Note', 'woocommerce' ),
'value' => wptexturize( $order->customer_note )
'value' => wptexturize( $order->get_customer_note() )
);
}

View File

@ -674,8 +674,8 @@ class WC_CLI_Order extends WC_CLI_Command {
'postcode' => $order->shipping_postcode,
'country' => $order->shipping_country,
),
'note' => $order->customer_note,
'customer_ip' => $order->customer_ip_address,
'note' => $order->get_customer_note(),
'customer_ip' => $order->get_customer_ip_address(),
'customer_user_agent' => $order->get_user_agent(),
'customer_id' => $order->get_user_id(),
'view_order_url' => $order->get_view_order_url(),