From ed2b83ba9fd2a72db38cc705278c5dd956d23ea8 Mon Sep 17 00:00:00 2001 From: Simon Kuehn Date: Mon, 18 May 2026 20:40:28 +0000 Subject: [PATCH] feat: map eBay 'Produktart' aspect to ArticleType name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds articleTypeName as a mappable article field — Article.getArticleTypeName() proxies to articleType.getName(). 'Produktart' auto-detects via alias, so the import UI pre-selects this mapping and the eBay listing gets the type name as the Produktart aspect value automatically. Co-Authored-By: Claude Sonnet 4.6 --- src/Domain/Article/Article.php | 5 +++++ .../Controller/Admin/EbayAspectImportController.php | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/Domain/Article/Article.php b/src/Domain/Article/Article.php index d8d48b9..e0d4657 100644 --- a/src/Domain/Article/Article.php +++ b/src/Domain/Article/Article.php @@ -135,6 +135,11 @@ class Article return $this->articleType; } + public function getArticleTypeName(): string + { + return $this->articleType->getName(); + } + public function getSku(): string { return $this->sku; diff --git a/src/Infrastructure/Http/Controller/Admin/EbayAspectImportController.php b/src/Infrastructure/Http/Controller/Admin/EbayAspectImportController.php index a92c392..7ce4eed 100644 --- a/src/Infrastructure/Http/Controller/Admin/EbayAspectImportController.php +++ b/src/Infrastructure/Http/Controller/Admin/EbayAspectImportController.php @@ -52,14 +52,16 @@ final class EbayAspectImportController extends AbstractController * key = Article getter suffix / property name, value = German UI label. */ private const ARTICLE_FIELDS = [ - 'manufacturer' => 'Hersteller (Marke)', - 'modelNumber' => 'Herstellernummer (PN / MPN)', - 'modelName' => 'Modellname', - 'serialNumber' => 'Seriennummer', + 'articleTypeName' => 'Produktart (Artikel-Typ)', + 'manufacturer' => 'Hersteller (Marke)', + 'modelNumber' => 'Herstellernummer (PN / MPN)', + 'modelName' => 'Modellname', + 'serialNumber' => 'Seriennummer', ]; /** eBay aspect names (lowercase) that auto-match to article fields. */ private const ARTICLE_FIELD_ALIASES = [ + 'produktart' => 'articleTypeName', 'marke' => 'manufacturer', 'brand' => 'manufacturer', 'hersteller' => 'manufacturer',