27-05-2026 DHL Modul v2.1 / Optimierung tracking
This commit is contained in:
parent
036595be94
commit
2bdc9ada3c
33 changed files with 2367 additions and 2086 deletions
|
|
@ -4,6 +4,7 @@ namespace App\Services;
|
|||
|
||||
use App\Http\Controllers\SettingController;
|
||||
use App\Models\ShoppingOrder;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* DHL Data Helper
|
||||
|
|
@ -23,7 +24,14 @@ class DhlDataHelper
|
|||
*/
|
||||
public static function prepareOrderData(ShoppingOrder $order, float $weight, array $options = [], ?array $dhlConfig = null): array
|
||||
{
|
||||
\Log::info('prepareOrderData', $options);
|
||||
Log::info('[DHL DataHelper] Preparing order data', [
|
||||
'order_id' => $order->id,
|
||||
'product_code' => $options['product_code'] ?? null,
|
||||
'has_shipping_address' => isset($options['shipping_address']),
|
||||
'has_reference' => ! empty($options['reference'] ?? $options['shipment_reference'] ?? null),
|
||||
'print_only_if_codeable' => (bool) ($options['print_only_if_codeable'] ?? false),
|
||||
]);
|
||||
|
||||
// die daten für das versandlabel werden immer aus dem Formular genommen, damit anpassungen möglich sind
|
||||
if (! isset($options['shipping_address'])) {
|
||||
throw new \Exception('shipping_address is required');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue