diff --git a/www/lib/class.remote.php b/www/lib/class.remote.php index ce0cf898..c2f30bbd 100644 --- a/www/lib/class.remote.php +++ b/www/lib/class.remote.php @@ -631,11 +631,17 @@ class Remote } $arr['projekt'] = $shopexportArr['projekt']; $arr['name_de'] = $ret['name']; - $arr['uebersicht_de'] = isset($ret['uebersicht_de'])?$ret['uebersicht_de']:''; - $arr['kurztext_de'] = isset($ret['kurztext_de'])?$ret['kurztext_de']:''; + $arr['uebersicht_de'] = $ret['uebersicht_de'] ?? ''; + $arr['kurztext_de'] = $ret['kurztext_de'] ?? ''; $arr['name_en'] = $ret['name_en']; - $arr['uebersicht_en'] = isset($ret['uebersicht_en'])?$ret['uebersicht_en']:''; - $arr['kurztext_en'] = isset($ret['kurztext_en'])?$ret['kurztext_en']:''; + $arr['uebersicht_en'] = $ret['uebersicht_en'] ?? ''; + $arr['kurztext_en'] = $ret['kurztext_en'] ?? ''; + $arr['metakeywords_de'] = $ret['metakeywords_de'] ?? ''; + $arr['metakeywords_en'] = $ret['metakeywords_en'] ?? ''; + $arr['metatitle_de'] = $ret['metatitle_de'] ?? ''; + $arr['metatitle_en'] = $ret['metatitle_en'] ?? ''; + $arr['metadescription_de'] = $ret['metadescription_de'] ?? ''; + $arr['metadescription_en'] = $ret['metadescription_en'] ?? ''; //$arr['anabregs_text'] = isset($ret['uebersicht_de'])?$ret['uebersicht_de']:''; if(isset($ret['ean']) && $ret['ean'] != '') { diff --git a/www/pages/shopimporter_presta.php b/www/pages/shopimporter_presta.php index f3885b19..cce154a8 100644 --- a/www/pages/shopimporter_presta.php +++ b/www/pages/shopimporter_presta.php @@ -371,6 +371,9 @@ class Shopimporter_Presta extends ShopimporterBase $names = $this->toMultilangArray($product->product->name->language); $descriptions = $this->toMultilangArray($product->product->description->language); $shortdescriptions = $this->toMultilangArray($product->product->description_short->language); + $metadescriptions = $this->toMultilangArray($product->product->meta_description->language); + $metakeywords = $this->toMultilangArray($product->product->meta_keywords->language); + $metatitles = $this->toMultilangArray($product->product->meta_title->language); $res['name'] = $names['de']; $res['name_en'] = $names['en']; $res['uebersicht_de'] = $descriptions['de']; @@ -378,6 +381,12 @@ class Shopimporter_Presta extends ShopimporterBase $res['kurztext_de'] = strip_tags($shortdescriptions['de']); $res['kurztext_en'] = strip_tags($shortdescriptions['en']); $res['hersteller'] = strval($product->product->manufacturer_name); + $res['metakeywords_de'] = $metakeywords['de']; + $res['metakeywords_en'] = $metakeywords['en']; + $res['metatitle_de'] = $metatitles['de']; + $res['metatitle_en'] = $metatitles['en']; + $res['metadescription_de'] = $metadescriptions['de']; + $res['metadescription_en'] = $metadescriptions['en']; $images = []; foreach ($product->product->associations->images->image as $img) {