diff --git a/Model/Data/Offer.php b/Model/Data/Offer.php index 9d44837..da0807a 100644 --- a/Model/Data/Offer.php +++ b/Model/Data/Offer.php @@ -422,7 +422,6 @@ public function getRawData(): array ], 'product' => null, 'parameters' => $this->mapParameters($this->getParameters()), - 'ean' => $this->getEan(), 'description' => [ 'sections' => [ 0 => [ @@ -463,6 +462,10 @@ public function getRawData(): array 'afterSalesServices' => $this->mapAfterSalesServices($this->getAfterSalesServices()) ]; + if ($this->getEan() != '') { + $rawData['ean'] = $this->getEan(); + } + return $rawData; }