feat: map eBay 'Produktart' aspect to ArticleType name
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 <noreply@anthropic.com>
This commit is contained in:
parent
61ce94bc6f
commit
ed2b83ba9f
2 changed files with 11 additions and 4 deletions
|
|
@ -135,6 +135,11 @@ class Article
|
||||||
return $this->articleType;
|
return $this->articleType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getArticleTypeName(): string
|
||||||
|
{
|
||||||
|
return $this->articleType->getName();
|
||||||
|
}
|
||||||
|
|
||||||
public function getSku(): string
|
public function getSku(): string
|
||||||
{
|
{
|
||||||
return $this->sku;
|
return $this->sku;
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@ final class EbayAspectImportController extends AbstractController
|
||||||
* key = Article getter suffix / property name, value = German UI label.
|
* key = Article getter suffix / property name, value = German UI label.
|
||||||
*/
|
*/
|
||||||
private const ARTICLE_FIELDS = [
|
private const ARTICLE_FIELDS = [
|
||||||
|
'articleTypeName' => 'Produktart (Artikel-Typ)',
|
||||||
'manufacturer' => 'Hersteller (Marke)',
|
'manufacturer' => 'Hersteller (Marke)',
|
||||||
'modelNumber' => 'Herstellernummer (PN / MPN)',
|
'modelNumber' => 'Herstellernummer (PN / MPN)',
|
||||||
'modelName' => 'Modellname',
|
'modelName' => 'Modellname',
|
||||||
|
|
@ -60,6 +61,7 @@ final class EbayAspectImportController extends AbstractController
|
||||||
|
|
||||||
/** eBay aspect names (lowercase) that auto-match to article fields. */
|
/** eBay aspect names (lowercase) that auto-match to article fields. */
|
||||||
private const ARTICLE_FIELD_ALIASES = [
|
private const ARTICLE_FIELD_ALIASES = [
|
||||||
|
'produktart' => 'articleTypeName',
|
||||||
'marke' => 'manufacturer',
|
'marke' => 'manufacturer',
|
||||||
'brand' => 'manufacturer',
|
'brand' => 'manufacturer',
|
||||||
'hersteller' => 'manufacturer',
|
'hersteller' => 'manufacturer',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue