Usunięto pliki .DS_Store oraz dodano warunek sprawdzający status sklepu przed aktualizacją statusu zamówienia w cron.php.

This commit is contained in:
2025-07-14 14:59:19 +02:00
parent 3943502bf7
commit 3a3464c062
3 changed files with 4 additions and 1 deletions

BIN
autoload/.DS_Store vendored

Binary file not shown.

Binary file not shown.

View File

@@ -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 '<p>Zaktualizowałem status zamówienia <b>' . $order['number'] . '</b></p>';
}