1
0
mirror of synced 2025-02-21 17:33:13 +03:00

Correct email, transfer in lowercase (#161)

This commit is contained in:
Dima Uryvskiy 2020-09-30 12:55:49 +03:00 committed by GitHub
parent 30cd87cad9
commit 60d093d7a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,10 +64,10 @@ class WC_Retailcrm_Order extends WC_Retailcrm_Abstracts_Data
$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()