1
0
mirror of synced 2025-01-31 07:11:42 +03:00

Fix bug in updating order number by history

This commit is contained in:
Dima Uryvskiy 2022-03-24 16:37:38 +03:00 committed by GitHub
parent a12bdf7a74
commit 54992c9904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 17 deletions

View File

@ -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

View File

@ -1 +1 @@
4.4.2
4.4.3

View File

@ -245,7 +245,6 @@ if (!class_exists('WC_Retailcrm_History')) :
);
$this->updateMetaData($customFields, $order, $wcOrder);
}
$wcOrderNumber = $wcOrder->get_order_number();
@ -254,11 +253,12 @@ if (!class_exists('WC_Retailcrm_History')) :
&& isset($this->retailcrmSettings['update_number'])
&& $this->retailcrmSettings['update_number'] == WC_Retailcrm_Base::YES
) {
$order['number'] = $wcOrderNumber;
$this->retailcrm->ordersEdit($order, 'id');
$this->retailcrm->ordersEdit(
['id' => $order['id'], 'number' => $wcOrderNumber],
'id'
);
}
}
// @codeCoverageIgnoreStart
} catch (Exception $exception) {
WC_Retailcrm_Logger::add(

View File

@ -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

View File

@ -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

View File

@ -16,7 +16,7 @@
*
* @link https://wordpress.org/plugins/woo-retailcrm/
*
* @version 4.4.2
* @version 4.4.3
*
* @package RetailCRM
*/