Fix bug in updating order number by history
This commit is contained in:
parent
a12bdf7a74
commit
54992c9904
@ -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
|
## 2022-02-24 4.4.2
|
||||||
* Delete deprecated API V4. Refactoring API V5 and history getting method
|
* Delete deprecated API V4. Refactoring API V5 and history getting method
|
||||||
* Fix bug with use xmlId
|
* Fix bug with use xmlId
|
||||||
|
@ -245,20 +245,20 @@ if (!class_exists('WC_Retailcrm_History')) :
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->updateMetaData($customFields, $order, $wcOrder);
|
$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
|
// @codeCoverageIgnoreStart
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
WC_Retailcrm_Logger::add(
|
WC_Retailcrm_Logger::add(
|
||||||
|
@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla
|
|||||||
Requires PHP: 5.6
|
Requires PHP: 5.6
|
||||||
Requires at least: 5.3
|
Requires at least: 5.3
|
||||||
Tested up to: 5.9
|
Tested up to: 5.9
|
||||||
Stable tag: 4.4.2
|
Stable tag: 4.4.3
|
||||||
License: GPLv1 or later
|
License: GPLv1 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-1.0.html
|
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 ==
|
== 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 =
|
= 4.4.2 =
|
||||||
* Delete deprecated API V4. Refactoring API V5 and history getting method
|
* Delete deprecated API V4. Refactoring API V5 and history getting method
|
||||||
* Fix bug with use xmlId
|
* Fix bug with use xmlId
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Description: Integration plugin for WooCommerce & Simla.com
|
* Description: Integration plugin for WooCommerce & Simla.com
|
||||||
* Author: RetailDriver LLC
|
* Author: RetailDriver LLC
|
||||||
* Author URI: http://retailcrm.pro/
|
* Author URI: http://retailcrm.pro/
|
||||||
* Version: 4.4.2
|
* Version: 4.4.3
|
||||||
* Tested up to: 5.9
|
* Tested up to: 5.9
|
||||||
* WC requires at least: 5.4
|
* WC requires at least: 5.4
|
||||||
* WC tested up to: 6.2
|
* WC tested up to: 6.2
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @link https://wordpress.org/plugins/woo-retailcrm/
|
* @link https://wordpress.org/plugins/woo-retailcrm/
|
||||||
*
|
*
|
||||||
* @version 4.4.2
|
* @version 4.4.3
|
||||||
*
|
*
|
||||||
* @package RetailCRM
|
* @package RetailCRM
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user