parent
f32fb6a4c4
commit
53ad81aec3
@ -1,3 +1,6 @@
|
|||||||
|
## 2024-02-07 4.7.3
|
||||||
|
* Added filters after creating and updating an order
|
||||||
|
|
||||||
## 2024-01-31 4.7.2
|
## 2024-01-31 4.7.2
|
||||||
* Fixed error with send address by history
|
* Fixed error with send address by history
|
||||||
|
|
||||||
|
@ -42,6 +42,10 @@
|
|||||||
|
|
||||||
> retailcrm_shipping_list - позволяет изменить методы доставки с CMS.
|
> retailcrm_shipping_list - позволяет изменить методы доставки с CMS.
|
||||||
|
|
||||||
|
> retailcrm_order_create_after - позволяет проверить создание заказа и произвести дополнительные действия
|
||||||
|
|
||||||
|
> retailcrm_order_update_after - позволяет проверить изменение заказа и произвести дополнительные действия
|
||||||
|
|
||||||
**Пример использования:**
|
**Пример использования:**
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
|
@ -92,6 +92,9 @@ if (!class_exists('WC_Retailcrm_Orders')) :
|
|||||||
|
|
||||||
$response = $this->retailcrm->ordersCreate($this->order);
|
$response = $this->retailcrm->ordersCreate($this->order);
|
||||||
|
|
||||||
|
// Allows you to verify order creation and perform additional actions
|
||||||
|
$response = apply_filters('retailcrm_order_create_after', $response, $wcOrder);
|
||||||
|
|
||||||
if (!$response instanceof WC_Retailcrm_Response || !$response->isSuccessful()) {
|
if (!$response instanceof WC_Retailcrm_Response || !$response->isSuccessful()) {
|
||||||
return $response->getErrorString();
|
return $response->getErrorString();
|
||||||
}
|
}
|
||||||
@ -276,6 +279,9 @@ if (!class_exists('WC_Retailcrm_Orders')) :
|
|||||||
|
|
||||||
$response = $this->retailcrm->ordersEdit($this->order);
|
$response = $this->retailcrm->ordersEdit($this->order);
|
||||||
|
|
||||||
|
// Allows you to verify order changes and perform additional actions
|
||||||
|
$response = apply_filters('retailcrm_order_update_after', $response, $wcOrder);
|
||||||
|
|
||||||
if ($response instanceof WC_Retailcrm_Response && $response->isSuccessful()) {
|
if ($response instanceof WC_Retailcrm_Response && $response->isSuccessful()) {
|
||||||
$this->payment = $this->orderUpdatePaymentType($wcOrder);
|
$this->payment = $this->orderUpdatePaymentType($wcOrder);
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla
|
|||||||
Requires PHP: 7.0
|
Requires PHP: 7.0
|
||||||
Requires at least: 5.3
|
Requires at least: 5.3
|
||||||
Tested up to: 6.4
|
Tested up to: 6.4
|
||||||
Stable tag: 4.7.2
|
Stable tag: 4.7.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,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i
|
|||||||
|
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
= 4.7.3 =
|
||||||
|
* Added filters after creating and updating an order
|
||||||
|
|
||||||
= 4.7.2 =
|
= 4.7.2 =
|
||||||
* Fixed error with send address by history
|
* Fixed error with send address by history
|
||||||
|
|
||||||
|
@ -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.7.2
|
* Version: 4.7.3
|
||||||
* Tested up to: 6.4
|
* Tested up to: 6.4
|
||||||
* WC requires at least: 5.4
|
* WC requires at least: 5.4
|
||||||
* WC tested up to: 8.5
|
* WC tested up to: 8.5
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @link https://wordpress.org/plugins/woo-retailcrm/
|
* @link https://wordpress.org/plugins/woo-retailcrm/
|
||||||
*
|
*
|
||||||
* @version 4.7.2
|
* @version 4.7.3
|
||||||
*
|
*
|
||||||
* @package RetailCRM
|
* @package RetailCRM
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user