diff --git a/CHANGELOG.md b/CHANGELOG.md index 674c881..e333f00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2022-03-24 4.4.3 +* Fix bug in updating order number by history +* Add multiple image transfer in ICML +* Add filters for custom fields +* Fix bug with create/update customer + ## 2022-02-24 4.4.2 * Delete deprecated API V4. Refactoring API V5 and history getting method * Fix bug with use xmlId diff --git a/VERSION b/VERSION index f939222..f0f76fb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.4.2 \ No newline at end of file +4.4.3 \ No newline at end of file diff --git a/src/include/class-wc-retailcrm-history.php b/src/include/class-wc-retailcrm-history.php index 7196377..aaaac4a 100644 --- a/src/include/class-wc-retailcrm-history.php +++ b/src/include/class-wc-retailcrm-history.php @@ -245,20 +245,20 @@ if (!class_exists('WC_Retailcrm_History')) : ); $this->updateMetaData($customFields, $order, $wcOrder); + + $wcOrderNumber = $wcOrder->get_order_number(); + + if ( + $order['number'] != $wcOrderNumber + && isset($this->retailcrmSettings['update_number']) + && $this->retailcrmSettings['update_number'] == WC_Retailcrm_Base::YES + ) { + $this->retailcrm->ordersEdit( + ['id' => $order['id'], 'number' => $wcOrderNumber], + 'id' + ); + } } - - $wcOrderNumber = $wcOrder->get_order_number(); - - if ( - $order['number'] != $wcOrderNumber - && isset($this->retailcrmSettings['update_number']) - && $this->retailcrmSettings['update_number'] == WC_Retailcrm_Base::YES - ) { - $order['number'] = $wcOrderNumber; - - $this->retailcrm->ordersEdit($order, 'id'); - } - // @codeCoverageIgnoreStart } catch (Exception $exception) { WC_Retailcrm_Logger::add( diff --git a/src/readme.txt b/src/readme.txt index 46259fc..9563a8c 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla Requires PHP: 5.6 Requires at least: 5.3 Tested up to: 5.9 -Stable tag: 4.4.2 +Stable tag: 4.4.3 License: GPLv1 or later License URI: http://www.gnu.org/licenses/gpl-1.0.html @@ -82,6 +82,12 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i == Changelog == += 4.4.3 = +* Fix bug in updating order number by history +* Add multiple image transfer in ICML +* Add filters for custom fields +* Fix bug with create/update customer + = 4.4.2 = * Delete deprecated API V4. Refactoring API V5 and history getting method * Fix bug with use xmlId diff --git a/src/retailcrm.php b/src/retailcrm.php index b9ad29e..a8d9404 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.4.2 + * Version: 4.4.3 * Tested up to: 5.9 * WC requires at least: 5.4 * WC tested up to: 6.2 diff --git a/src/uninstall.php b/src/uninstall.php index 4bdb127..912692d 100644 --- a/src/uninstall.php +++ b/src/uninstall.php @@ -16,7 +16,7 @@ * * @link https://wordpress.org/plugins/woo-retailcrm/ * - * @version 4.4.2 + * @version 4.4.3 * * @package RetailCRM */