inspection update
This commit is contained in:
parent
138721128c
commit
bbf3acb83b
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue