From 67da93956c4d7917e86bb6d9279e30743abd94f5 Mon Sep 17 00:00:00 2001 From: dima-uryvskiy Date: Thu, 12 Aug 2021 10:40:17 +0300 Subject: [PATCH] Fix bug in customer address --- src/include/customer/class-wc-retailcrm-customer-address.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/customer/class-wc-retailcrm-customer-address.php b/src/include/customer/class-wc-retailcrm-customer-address.php index 88edf00..400094d 100644 --- a/src/include/customer/class-wc-retailcrm-customer-address.php +++ b/src/include/customer/class-wc-retailcrm-customer-address.php @@ -32,7 +32,7 @@ class WC_Retailcrm_Customer_Address extends WC_Retailcrm_Abstracts_Address 'countryIso' => $order->get_billing_country(), 'region' => $this->get_state_name($order->get_billing_country(), $order->get_billing_state()), 'city' => $order->get_billing_city(), - 'text' => $order->get_billing_address_1() . ', ' . $order->get_billing_address_2() + 'text' => implode(', ', array_filter(array($order->get_billing_address_1(), $order->get_billing_address_2()))) ); } else { $data = array( @@ -40,7 +40,7 @@ class WC_Retailcrm_Customer_Address extends WC_Retailcrm_Abstracts_Address 'countryIso' => $customer->get_billing_country(), 'region' => $this->get_state_name($customer->get_billing_country(), $customer->get_billing_state()), 'city' => $customer->get_billing_city(), - 'text' => $customer->get_billing_address_1() . ', ' . $customer->get_billing_address_2() + 'text' => implode(', ', array_filter(array($customer->get_billing_address_1(), $customer->get_billing_address_2()))) ); }