1
0
Fork 0
mirror of synced 2025-04-02 21:36:14 +03:00

inspection update

This commit is contained in:
Ivan Chaplygin 2024-11-07 12:02:33 +03:00
parent 138721128c
commit bbf3acb83b

View file

@ -557,6 +557,10 @@ if (!class_exists('WC_Retailcrm_Base')) {
{
WC_Retailcrm_Logger::setHook(current_action());
if (did_action('woocommerce_new_order') === 0) {
return;
}
if (did_action('woocommerce_checkout_order_processed')) {
WC_Retailcrm_Logger::info(
__METHOD__,
@ -566,10 +570,6 @@ if (!class_exists('WC_Retailcrm_Base')) {
return;
}
if (did_action('woocommerce_new_order') === 0) {
return;
}
$logText = 'Creation order';
if (is_admin()) {
@ -716,8 +716,8 @@ if (!class_exists('WC_Retailcrm_Base')) {
{
WC_Retailcrm_Logger::setHook(current_action());
if ($this->updatedOrderId !== []) {
foreach ($this->updatedOrderId as $orderId) {
foreach ($this->updatedOrderId as $orderId) {
if (!isset($this->createdOrderId[$orderId])) {
$this->orders->updateOrder($orderId);
}
}