ref #90318 Added handling of fatal errors when working with abandoned carts
This commit is contained in:
parent
02de28a7f5
commit
0e51289625
@ -1,3 +1,6 @@
|
|||||||
|
## 2022-06-14 4.6.6
|
||||||
|
* Added handling of fatal errors when working with abandoned carts
|
||||||
|
|
||||||
## 2022-06-08 4.6.5
|
## 2022-06-08 4.6.5
|
||||||
* Transferring WC meta fields to standard CRM order and customer fields
|
* Transferring WC meta fields to standard CRM order and customer fields
|
||||||
|
|
||||||
|
@ -408,6 +408,7 @@ if (!class_exists('WC_Retailcrm_Base')) {
|
|||||||
{
|
{
|
||||||
global $woocommerce;
|
global $woocommerce;
|
||||||
|
|
||||||
|
try {
|
||||||
$site = $this->apiClient->getSingleSiteForKey();
|
$site = $this->apiClient->getSingleSiteForKey();
|
||||||
$cartItems = $woocommerce->cart->get_cart();
|
$cartItems = $woocommerce->cart->get_cart();
|
||||||
$customerId = $woocommerce->customer->get_id();
|
$customerId = $woocommerce->customer->get_id();
|
||||||
@ -426,6 +427,9 @@ if (!class_exists('WC_Retailcrm_Base')) {
|
|||||||
writeBaseLogs('Cart for customer ID: ' . $customerId . ' not processed. Hook: ' . current_filter());
|
writeBaseLogs('Cart for customer ID: ' . $customerId . ' not processed. Hook: ' . current_filter());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Throwable $exception) {
|
||||||
|
writeBaseLogs($exception->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -443,6 +447,7 @@ if (!class_exists('WC_Retailcrm_Base')) {
|
|||||||
{
|
{
|
||||||
global $woocommerce;
|
global $woocommerce;
|
||||||
|
|
||||||
|
try {
|
||||||
$site = $this->apiClient->getSingleSiteForKey();
|
$site = $this->apiClient->getSingleSiteForKey();
|
||||||
$customerId = $woocommerce->customer->get_id();
|
$customerId = $woocommerce->customer->get_id();
|
||||||
|
|
||||||
@ -460,6 +465,9 @@ if (!class_exists('WC_Retailcrm_Base')) {
|
|||||||
writeBaseLogs('Cart for customer ID: ' . $customerId . ' not cleared. Hook: ' . current_filter());
|
writeBaseLogs('Cart for customer ID: ' . $customerId . ' not cleared. Hook: ' . current_filter());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Throwable $exception) {
|
||||||
|
writeBaseLogs($exception->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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.0
|
Tested up to: 6.0
|
||||||
Stable tag: 4.6.5
|
Stable tag: 4.6.6
|
||||||
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.6.6 =
|
||||||
|
* Added handling of fatal errors when working with abandoned carts
|
||||||
|
|
||||||
= 4.6.5 =
|
= 4.6.5 =
|
||||||
* Transferring WC meta fields to standard CRM order and customer fields
|
* Transferring WC meta fields to standard CRM order and customer fields
|
||||||
|
|
||||||
|
@ -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.6.5
|
* Version: 4.6.6
|
||||||
* Tested up to: 6.0
|
* Tested up to: 6.0
|
||||||
* WC requires at least: 5.4
|
* WC requires at least: 5.4
|
||||||
* WC tested up to: 6.9
|
* WC tested up to: 6.9
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @link https://wordpress.org/plugins/woo-retailcrm/
|
* @link https://wordpress.org/plugins/woo-retailcrm/
|
||||||
*
|
*
|
||||||
* @version 4.6.5
|
* @version 4.6.6
|
||||||
*
|
*
|
||||||
* @package RetailCRM
|
* @package RetailCRM
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user