1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00

Do not create orders with the auto-draft status

This commit is contained in:
dima-uryvskiy 2021-03-14 14:50:15 +03:00
parent 33db0a6c83
commit b4448cfe94

View file

@ -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;
}