From d23c0f09dd668f64f1d960fbf0a30c17b401055d Mon Sep 17 00:00:00 2001 From: Andreas Palm Date: Tue, 21 Feb 2023 17:14:56 +0100 Subject: [PATCH] apply customer language --- www/pages/shopimporter_presta.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/pages/shopimporter_presta.php b/www/pages/shopimporter_presta.php index 60fd40c2..818c56fc 100644 --- a/www/pages/shopimporter_presta.php +++ b/www/pages/shopimporter_presta.php @@ -211,6 +211,11 @@ class Shopimporter_Presta extends ShopimporterBase $customer = $this->prestaRequest('GET', "customers/$order->id_customer"); $cart['email'] = strval($customer->customer->email); + $language = $this->prestaRequest('GET', "languages/{$customer->customer->id_lang}"); + if ($language->language->iso_code == "en") { + $cart['kunde_sprache'] = 'englisch'; + } + $invoiceAddress = $this->prestaRequest('GET', "addresses/$order->id_address_invoice"); $invoiceAddress = $invoiceAddress->address; $invoiceCountry = $this->prestaRequest('GET', "countries/$invoiceAddress->id_country");