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

Added check of order status when updating it

This commit is contained in:
Ivan Chaplygin 2024-10-24 14:53:57 +03:00
parent 48c680c420
commit 4b42003cd2

View file

@ -330,6 +330,11 @@ if (!class_exists('WC_Retailcrm_Orders')) :
try {
$wcOrder = wc_get_order($orderId);
if ($wcOrder->get_status() === 'checkout-draft') {
return null;
}
WC_Retailcrm_Logger::info(
__METHOD__,
'Update WC_Order ' . $wcOrder->get_id(),