mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
Prestashop: Improve article import
This commit is contained in:
parent
1f27f9a5f5
commit
cb2b75a3ca
@ -633,6 +633,9 @@ class Remote
|
||||
$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['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['anabregs_text'] = isset($ret['uebersicht_de'])?$ret['uebersicht_de']:'';
|
||||
if(isset($ret['ean']) && $ret['ean'] != '')
|
||||
{
|
||||
|
@ -346,6 +346,7 @@ class Shopimporter_Presta extends ShopimporterBase
|
||||
$product = $this->prestaRequest('GET', "products/$productid");
|
||||
$res = [];
|
||||
$res['nummer'] = strval($product->product->reference);
|
||||
$res['shoparticleid'] = intval($productid);
|
||||
$res['artikelnummerausshop'] = strval($product->product->reference);
|
||||
$names = $this->toMultilangArray($product->product->name->language);
|
||||
$descriptions = $this->toMultilangArray($product->product->description->language);
|
||||
@ -354,6 +355,8 @@ class Shopimporter_Presta extends ShopimporterBase
|
||||
$res['name_en'] = $names['en'];
|
||||
$res['uebersicht_de'] = $descriptions['de'];
|
||||
$res['uebersicht_en'] = $descriptions['en'];
|
||||
$res['kurztext_de'] = $shortdescriptions['de'];
|
||||
$res['kurztext_en'] = $shortdescriptions['en'];
|
||||
$res['preis_netto'] = strval($product->product->price);
|
||||
$res['hersteller'] = strval($product->product->manufacturer_name);
|
||||
$res['ean'] = strval($product->product->ean13);
|
||||
|
Loading…
Reference in New Issue
Block a user