Commit 8ada3aec authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '55-die-bilder-aus-den-produktsuchen-werden-noch-nicht-verarbeitet' into 'master'

Diese beiden Produktsuchen geben jetzt auch wieder kleine Artikelbilder an

Closes #55

See merge request !63
parents b4b642d4 06a961aa
......@@ -43,6 +43,7 @@ class Ecoshopper extends Searchengine
$anzeigeLink = $link;
}
$descr = $result->xpath('//doc/str[@name="artikelBeschreibung"]')[0]->__toString();
$image = $result->xpath('//doc/str[@name="artikelImageurl"]')[0]->__toString();
$this->counter++;
$this->results[] = new \App\Models\Result(
$this->engine,
......@@ -51,7 +52,9 @@ class Ecoshopper extends Searchengine
$anzeigeLink,
$descr,
$this->gefVon,
$this->counter
$this->counter,
false,
$image
);
}
}
......
......@@ -35,6 +35,7 @@ class Mg_produkt2 extends Searchengine
parse_str($anzeigeLink['query'], $query);
$anzeigeLink = $query['diurl'];
$descr = $result->xpath('/doc/arr[@name="artikelBeschreibung"]')[0]->{"str"}->__toString();
$image = $result->xpath('/doc/arr[@name="artikelImageurl"]')[0]->{"str"}->__toString();
$this->counter++;
$this->results[] = new \App\Models\Result(
$this->engine,
......@@ -43,7 +44,9 @@ class Mg_produkt2 extends Searchengine
$anzeigeLink,
$descr,
$this->gefVon,
$this->counter
$this->counter,
false,
$image
);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment