Skip to content

Commit

Permalink
Correct email, transfer in lowercase (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Uryvskiy authored Sep 30, 2020
1 parent 30cd87c commit 60d093d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/include/order/class-wc-retailcrm-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public function build($order)

$data = array(
'externalId' => $order->get_id(),
'createdAt' => $order->get_date_created()->date('Y-m-d H:i:s'),
'firstName' => $firstName,
'lastName' => $lastName,
'email' => $order->get_billing_email(),
'createdAt' => $order->get_date_created()->date('Y-m-d H:i:s'),
'firstName' => $order->get_shipping_first_name(),
'lastName' => $order->get_shipping_last_name(),
'email' => strtolower($order->get_billing_email()),
'customerComment' => $order->get_customer_note(),
'phone' => $order->get_billing_phone(),
'countryIso' => $order->get_shipping_country()
Expand Down

0 comments on commit 60d093d

Please sign in to comment.