diff --git a/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php b/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php index 2c0afa2e..3c8975b6 100644 --- a/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php +++ b/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php @@ -54,6 +54,12 @@ class Product $product['@code'] = $entity->getCode(); $product['name'] = preg_replace('/[\r\n\s]+/', ' ', $entity->getName()) . ' - ' . $entity->getRegion()->getName(); + //TODO: Don't hardcode concept uids here, make them configurable + $conceptUid = $entity->getConcept()->getUid(); + if ($conceptUid !== 3 && $conceptUid !== 4) { + $product['name'] .= ' (' . $entity->getConcept()->getName() . ')'; + } + $product['facts']['fact'] = array_map(function ($fact) { /** @var Fact $fact */ return htmlspecialchars($fact->getName());