Projekt

Allgemein

Profil

Aktionen

GX-Bug #70632

geschlossen

Import von Afterbuy Artikeln funktioniert nicht, wenn man Unterartikel hat / Import of Afterbuy articles does not work if one has subarticles

Von Till Tepelmann vor 11 Monaten hinzugefügt. Vor etwa 2 Monaten aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Alexandre Ataides
Kategorie:
Afterbuy
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.8.0.2
Release Notes Langtext:

Import von Afterbuy Produkten ist nun auch ohne Unterprodukte möglich


Beschreibung

Import von Afterbuy Artikeln funktioniert nicht, wenn man Unterartikel hat

Beim Import der Artikel mit Unterartikeln wird, nicht überprüft ob es auch Unterartikel gibt und löst damit ein Fehler aus, der dann den Import-Vorgang abbrechen lässt.
Hier muss geprüft werden bevor die Unterartikel behandelt werden ob es auch welche gibt.

Kann wie folgt reproduziert werden:

  1. Shop installieren
  2. Afterbuy Modul im Modulcenter installieren
  3. Afterbuy Konfigurieren, Zugangsdaten für API bei Till erfragen
  4. Im Afterbuy Modul auf "Artikel-Import" klicken
  5. Umfang des Datenimports auf "vollständige Artikel" auswählen
  6. Importiere Artikel-Änderungen ab auf 01.09.2023 stellen
  7. Button Kataloge importieren klicken
  8. Button "Artikelimport starten / fortsetzen" klicken

Erwartetes Ergebnis:
Der Import der Artikel läuft ohne Fehler durch

Tatsächliches Ergebnis:
Beim Import gibt es viele Einträge im Error-Log


Import of Afterbuy articles does not work if one has subarticles

When importing articles with sub-articles, it is not checked whether there are sub-articles and thus triggers an error, which then cancels the import process.
Here it is necessary to check if there are any sub-articles before handling them.

Can be reproduced as follows:

  1. install store
  2. install the Afterbuy module in the module center
  3. configure Afterbuy, ask Till for access data for API
  4. click on "article import" in the Afterbuy module
  5. select scope of data import on "complete articles
  6. import article changes from set to 01.09.2023
  7. click button Import catalogs
  8. click button "Start / continue article import".

Expected result:
The import of the articles runs through without errors

Actual result:
During the import there are many entries in the error log


2023-10-10 14:30:07 WARNING: Invalid argument supplied for foreach()

context:    
session ID: 
session-652543cd68c026.95059099
code:   
2
file:   
/GXModules/Gambio/Afterbuy/Admin/Classes/Products/AfterbuyProductMapper.php
line:   
262
context:    
...
code snippet:   
          $productPicture->setUrl((string)$xmlProductPicture->Url);
          $productPicture->setAltText((string)$xmlProductPicture->AltText);
├─         foreach ($xmlProductPicture->Childs->ProductPicture as $xmlChild) {
              $childProductPicture = new ProductPicture();
              $childProductPicture->setTyp((int)$xmlChild->Typ);

Aktionen #1

Von Till Tepelmann vor 11 Monaten aktualisiert

  • Status wurde von Gemeldet zu Testing geändert
  • Release Notes Langtext aktualisiert (Vergleich)
Aktionen #3

Von Lennard Kläfker vor 10 Monaten aktualisiert

  • Tags wurde auf 4.9.1.0_RC1 gesetzt
Aktionen #4

Von Daniel Wu vor 9 Monaten aktualisiert

  • Tags wurde von 4.9.1.0_RC1 zu 4.9.1.0_RC1, Maintenance_2023 geändert
Aktionen #5

Von Josua Michalak vor 8 Monaten aktualisiert

  • Status wurde von Testing zu Feedback geändert
  • Zugewiesen an wurde auf Till Tepelmann gesetzt
Aktionen #7

Von Till Tepelmann vor 8 Monaten aktualisiert

  • Status wurde von Feedback zu Testing geändert
Aktionen #8

Von Till Tepelmann vor 7 Monaten aktualisiert

Aktionen #9

Von Till Tepelmann vor 7 Monaten aktualisiert

  • Zugewiesen an Till Tepelmann wurde gelöscht
Aktionen #10

Von Alexandre Ataides vor 7 Monaten aktualisiert

  • Zugewiesen an wurde auf Alexandre Ataides gesetzt
  • Zielversion wurde auf 4.9.1.0 RC1 gesetzt
Aktionen #11

Von Alexandre Ataides vor 7 Monaten aktualisiert

  • Status wurde von Testing zu Erledigt geändert
Aktionen #12

Von Till Tepelmann vor etwa 2 Monaten aktualisiert

  • Tags wurde von 4.9.1.0_RC1, Maintenance_2023 zu Maintenance_2023 geändert
Aktionen

Auch abrufbar als: Atom PDF