mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-24 13:40:29 +01:00
apply customer language
This commit is contained in:
parent
f495964d2b
commit
d23c0f09dd
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user