IP and notes
This commit is contained in:
parent
a8759fc0aa
commit
7b0d9a3e61
|
@ -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(),
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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() )
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue