diff --git a/CHANGELOG.md b/CHANGELOG.md index 3296c65..12d60f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2023-06-27 4.6.7 +* Fixed customer phone sending to crm when order will create by guest + ## 2022-06-14 4.6.6 * Added handling of fatal errors when working with abandoned carts diff --git a/VERSION b/VERSION index b3a44c1..16f8758 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.6.6 \ No newline at end of file +4.6.7 \ No newline at end of file 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 ]; } diff --git a/src/readme.txt b/src/readme.txt index 76f9a26..060db64 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla Requires PHP: 7.0 Requires at least: 5.3 Tested up to: 6.0 -Stable tag: 4.6.6 +Stable tag: 4.6.7 License: GPLv1 or later License URI: http://www.gnu.org/licenses/gpl-1.0.html @@ -82,6 +82,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i == Changelog == += 4.6.7 = +* Fixed customer phone sending to crm when order will create by guest + = 4.6.6 = * Added handling of fatal errors when working with abandoned carts diff --git a/src/retailcrm.php b/src/retailcrm.php index 9894602..9608790 100644 --- a/src/retailcrm.php +++ b/src/retailcrm.php @@ -5,7 +5,7 @@ * Description: Integration plugin for WooCommerce & Simla.com * Author: RetailDriver LLC * Author URI: http://retailcrm.pro/ - * Version: 4.6.6 + * Version: 4.6.7 * Tested up to: 6.0 * WC requires at least: 5.4 * WC tested up to: 6.9 diff --git a/src/uninstall.php b/src/uninstall.php index 5447e0c..814e67b 100644 --- a/src/uninstall.php +++ b/src/uninstall.php @@ -16,7 +16,7 @@ * * @link https://wordpress.org/plugins/woo-retailcrm/ * - * @version 4.6.6 + * @version 4.6.7 * * @package RetailCRM */