Skip to content

Commit d7dc014

Browse files
Added the isFromCart parameter transmission when creating an order (#368)
1 parent 215fb14 commit d7dc014

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2025-06-19 4.8.27
2+
* Added the isFromCart parameter transmission when creating an order
3+
14
## 2025-06-09 4.8.26
25
* Added loyalty history info
36

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.8.26
1+
4.8.27

src/include/class-wc-retailcrm-orders.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ public function orderCreate($orderId)
143143
$this->order['privilegeType'] = $privilegeType;
144144
}
145145

146+
// Необходимо всегда передавать параметр isFromCart = true, CRM сама проверит и привяжет корзину к заказу
147+
$this->order['isFromCart'] = true;
148+
146149
$response = $this->retailcrm->ordersCreate($this->order);
147150

148151
// Allows you to verify order creation and perform additional actions

src/readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla
55
Requires PHP: 7.1
66
Requires at least: 5.3
77
Tested up to: 6.8
8-
Stable tag: 4.8.26
8+
Stable tag: 4.8.27
99
License: GPLv1 or later
1010
License URI: http://www.gnu.org/licenses/gpl-1.0.html
1111

@@ -82,6 +82,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i
8282

8383

8484
== Changelog ==
85+
= 4.8.27 =
86+
* Added the isFromCart parameter transmission when creating an order
87+
8588
= 4.8.26 =
8689
* Added loyalty history info
8790

src/retailcrm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Integration plugin for WooCommerce & Simla.com
66
* Author: RetailDriver LLC
77
* Author URI: http://retailcrm.pro/
8-
* Version: 4.8.26
8+
* Version: 4.8.27
99
* Tested up to: 6.8
1010
* Requires Plugins: woocommerce
1111
* WC requires at least: 5.4
@@ -27,7 +27,7 @@
2727
class WC_Integration_Retailcrm {
2828
const WOOCOMMERCE_SLUG = 'woocommerce';
2929
const WOOCOMMERCE_PLUGIN_PATH = 'woocommerce/woocommerce.php';
30-
const MODULE_VERSION = '4.8.26';
30+
const MODULE_VERSION = '4.8.27';
3131

3232
private static $instance;
3333

src/uninstall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @link https://wordpress.org/plugins/woo-retailcrm/
1818
*
19-
* @version 4.8.26
19+
* @version 4.8.27
2020
*
2121
* @package RetailCRM
2222
*/

0 commit comments

Comments
 (0)