diff --git a/autoload/.DS_Store b/autoload/.DS_Store deleted file mode 100644 index 3239922..0000000 Binary files a/autoload/.DS_Store and /dev/null differ diff --git a/autoload/front/.DS_Store b/autoload/front/.DS_Store deleted file mode 100644 index 7285fd1..0000000 Binary files a/autoload/front/.DS_Store and /dev/null differ diff --git a/cron.php b/cron.php index ad08ca0..dc10328 100644 --- a/cron.php +++ b/cron.php @@ -710,7 +710,10 @@ if ( $apilo_settings['enabled'] and $apilo_settings['sync_orders'] and $apilo_se $shop_status_id = \front\factory\ShopStatuses::get_shop_status_by_integration_status_id( 'apilo', $responseData['status'] ); $order_tmp = new Order( $order['id'] ); - $order_tmp -> update_status( $shop_status_id, false ); + + if ( $shop_status_id ) + $order_tmp -> update_status( $shop_status_id, false ); + $order_tmp -> update_aplio_order_status_date( date( 'Y-m-d H:i:s' ) ); echo '

Zaktualizowałem status zamówienia ' . $order['number'] . '

'; }