From 578bcb63a2b4434e63e1ef14c181609bea893639 Mon Sep 17 00:00:00 2001 From: KMityai Date: Tue, 27 Jun 2023 17:28:16 +0300 Subject: [PATCH] fixed customer phone sending to crm --- src/include/class-wc-retailcrm-customers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/class-wc-retailcrm-customers.php b/src/include/class-wc-retailcrm-customers.php index a7b59ed..c2927b9 100644 --- a/src/include/class-wc-retailcrm-customers.php +++ b/src/include/class-wc-retailcrm-customers.php @@ -393,7 +393,7 @@ if (!class_exists('WC_Retailcrm_Customers')) : } if (empty($billingPhone)) { - $order->get_billing_phone(); + $billingPhone = $order->get_billing_phone(); } } @@ -415,7 +415,7 @@ if (!class_exists('WC_Retailcrm_Customers')) : if (!empty($billingPhone)) { $customerData['phones'][] = [ - 'number' => $customer->get_billing_phone() + 'number' => $billingPhone ]; }