mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
Prestashop: Improve article import
This commit is contained in:
parent
1f27f9a5f5
commit
cb2b75a3ca
@ -559,7 +559,7 @@ class Remote
|
||||
$steuersatz_normal = 19;
|
||||
}
|
||||
$crossellingInstalled = $this->app->erp->ModulVorhanden('crossselling');
|
||||
foreach($reta as $k => $ret)
|
||||
foreach($reta as $k => $ret)
|
||||
{
|
||||
if(isset($ret['stueckliste'])){
|
||||
$stuecklistenmechanik = $ret['stueckliste'];
|
||||
@ -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