From fbe266c97c486c841f5c75e3a6bb7c9678a3a561 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 1 Aug 2024 14:04:48 +0200 Subject: [PATCH] bugfix mirakl auftragsimport country code --- www/pages/shopimporter_mirakl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/pages/shopimporter_mirakl.php b/www/pages/shopimporter_mirakl.php index 0d025cc4..063a18fc 100644 --- a/www/pages/shopimporter_mirakl.php +++ b/www/pages/shopimporter_mirakl.php @@ -501,7 +501,9 @@ class Shopimporter_Mirakl extends ShopimporterBase { $cart['ort'] = strval($order->customer->billing_address->city); // $cart['ustid'] = '?'; - $sql = "SELECT iso FROM laender WHERE iso3 = '".$order->customer->billing_address->country_iso_code."'"; + if ($order->customer->billing_address->country_iso_code) { + $sql = "SELECT iso FROM laender WHERE iso3 = '".$order->customer->billing_address->country_iso_code."' LIMIT 1"; + } $cart['land'] = $this->app->DB->Select($sql); $cart['abweichendelieferadresse'] = 1;