From 62080f03d73887e058cf56f1158c749e64149ba5 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Fri, 22 Nov 2024 12:18:23 +0100 Subject: [PATCH] Dodano przypisanie adresu, miasta i kodu pocztowego dla transportu o ID 3 w cron.php --- cron.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cron.php b/cron.php index 01a9ab6..d930e37 100644 --- a/cron.php +++ b/cron.php @@ -517,6 +517,8 @@ if ( $apilo_settings['enabled'] and $apilo_settings['sync_orders'] and $apilo_se $street = $paczkomatData['address']; else if ( $orlenPointData ) $street = $orlenPointData['address']; + else if ( $order['transport_id'] == 3 ) + $street = 'ul. Krakowska 156/104'; if ( $order['client_city'] ) $city = $order['client_city']; @@ -524,6 +526,8 @@ if ( $apilo_settings['enabled'] and $apilo_settings['sync_orders'] and $apilo_se $city = $paczkomatData['city']; else if ( $orlenPointData ) $city = $orlenPointData['city']; + else if ( $order['transport_id'] == 3 ) + $city = 'Rzeszów'; if ( $order['client_postal_code'] ) $postal_code = $order['client_postal_code']; @@ -531,6 +535,8 @@ if ( $apilo_settings['enabled'] and $apilo_settings['sync_orders'] and $apilo_se $postal_code = $paczkomatData['postalCode']; else if ( $orlenPointData ) $postal_code = $orlenPointData['postalCode']; + else if ( $order['transport_id'] == 3 ) + $postal_code = '35-506'; $postData = [ 'idExternal' => $order['id'],