diff --git a/src/include/class-wc-retailcrm-orders.php b/src/include/class-wc-retailcrm-orders.php index 7929f13..9c5c44a 100644 --- a/src/include/class-wc-retailcrm-orders.php +++ b/src/include/class-wc-retailcrm-orders.php @@ -371,7 +371,11 @@ if ( ! class_exists( 'WC_Retailcrm_Orders' ) ) : return; } - if ($update === true) { + if ($order->get_status() == 'auto-draft') { + return; + } + + if ($update === true) { $this->orders->is_new = false; }