From 153bf5e7cf9e9daf624931c49f2f9375d509c873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Wed, 17 Oct 2018 10:57:27 +0200 Subject: [PATCH] Use BPN ids for product matching in FB catalog --- .../ext/ep_products/Classes/Domain/Serialization/Product.php | 2 +- .../ep_theme/Resources/Private/Templates/Product/Detail.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 5aa5eef9..64465daa 100644 --- a/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php +++ b/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php @@ -50,7 +50,7 @@ class Product 'images' => [], ]; - $product['@id'] = $entity->getUid(); + $product['@id'] = $entity->getBusProId(); $product['@code'] = $entity->getCode(); $product['name'] = preg_replace('/[\r\n\s]+/', ' ', $entity->getName()) . ' - ' . $entity->getConcept()->getName(); diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html b/web/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html index 86b3e1f2..72513c1f 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html @@ -17,7 +17,7 @@ }' argument-prefix='' :hotel-first="{f:if(condition: settings.hotelOnTop, then: 'true', else: 'false')}" - :fb-pixel-data="{ productUid: {product.uid}, nameInternal: '{product.nameInternal}' }" + :fb-pixel-data="{ productUid: {product.busProId}, nameInternal: '{product.nameInternal}' }" :watchlist="watchlist" :daytrip="{product.daytrip -> v:variable.convert(type: 'int')}" inline-template>