Use BPN ids for product matching in FB catalog
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}'
|
||||
argument-prefix='<ep:argumentPrefix pluginName="Ajax" />'
|
||||
:hotel-first="{f:if(condition: settings.hotelOnTop, then: 'true', else: 'false')}"
|
||||
:fb-pixel-data="{ productUid: <f:format.raw>{product.uid}</f:format.raw>, nameInternal: '<f:format.raw>{product.nameInternal}</f:format.raw>' }"
|
||||
:fb-pixel-data="{ productUid: <f:format.raw>{product.busProId}</f:format.raw>, nameInternal: '<f:format.raw>{product.nameInternal}</f:format.raw>' }"
|
||||
:watchlist="watchlist"
|
||||
:daytrip="{product.daytrip -> v:variable.convert(type: 'int')}"
|
||||
inline-template>
|
||||
|
||||
Reference in New Issue
Block a user