mirakl lagersync removed storageNotNeededElements

This commit is contained in:
OpenXE 2024-05-24 18:57:37 +02:00
parent 4f106028c9
commit d20bbe79b3
2 changed files with 7 additions and 20 deletions

View File

@ -632,18 +632,6 @@ Class ShopimporterBase{
'variants', 'variants',
'free_fields', 'free_fields',
], ],
'shopimporter_mirakl' => [
'article_descriptions',
'translations',
'categories',
'properties',
'pictures',
'cross_selling',
'bulk_prices',
'standard_price',
'variants',
'free_fields',
],
'shopimporter_shopify' => [ 'shopimporter_shopify' => [
'article_descriptions', 'article_descriptions',
'translations', 'translations',

View File

@ -19,7 +19,6 @@ JSON example for field_map
"angebotskonfiguration": "angebotskonfiguration":
[ [
{ {
"kategorien": ["Schrauben"],
"felder": { "felder": {
"product_id_type": {"wert": "SHOP_SKU"}, "product_id_type": {"wert": "SHOP_SKU"},
"product_id": {"feld": "nummer"}, "product_id": {"feld": "nummer"},
@ -28,7 +27,8 @@ JSON example for field_map
"description": "freifeld_Kategorie", "description": "freifeld_Kategorie",
"internal_description": {"eigenschaft": "Mirakl Steuertext"}, "internal_description": {"eigenschaft": "Mirakl Steuertext"},
"reversecharge": {"wert": "false","zusatzfeld": true}, "reversecharge": {"wert": "false","zusatzfeld": true},
"warehouse": {"wert": "1","zusatzfeld": true} "warehouse": {"wert": "1","zusatzfeld": true},
"quantity": {"feld": "anzahl_lager"}
} }
} }
] ]
@ -324,10 +324,13 @@ class Shopimporter_Mirakl extends ShopimporterBase {
return(null); return(null);
} }
public function ImportSendListLager() {
return($this->ImportSendList());
}
/* /*
* Send articles to shop * Send articles to shop
*/ */
public function ImportSendList() { public function ImportSendList() {
$articleList = $this->CatchRemoteCommand('data'); $articleList = $this->CatchRemoteCommand('data');
@ -421,9 +424,6 @@ class Shopimporter_Mirakl extends ShopimporterBase {
$json_for_mirakl = json_encode($data_for_mirakl); $json_for_mirakl = json_encode($data_for_mirakl);
// print_r($json_for_mirakl);
// exit();
$result = []; $result = [];
$response = $this->miraklRequest('offers', postdata: $json_for_mirakl, content_type: 'application/json', raw: true); $response = $this->miraklRequest('offers', postdata: $json_for_mirakl, content_type: 'application/json', raw: true);
@ -459,8 +459,7 @@ class Shopimporter_Mirakl extends ShopimporterBase {
} }
// Check errors // Check errors
$response = $this->miraklRequest('offers/imports/'.$import_id.'/error_report', raw: true); $response = $this->miraklRequest('offers/imports/'.$import_id.'/error_report', raw: true);
return(array('status' => false, 'message' => "Angebotsimport in Mirakl hat Fehler: ".print_r($response,true))); return(array('status' => false, 'message' => "Angebotsimport in Mirakl hat Fehler: ".print_r($response,true)));
} }