We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b31c01f commit 3ed6a36Copy full SHA for 3ed6a36
examples/coveo-starter/components/ResultItem.tsx
@@ -64,9 +64,9 @@ const ResultItem: FC<ResultItemProps> = ({
64
coveoua('send', 'pageview');
65
coveoua('ec:addProduct', {
66
'id': '${item.raw.permanentid}',
67
- 'name': '${item.raw.ec_name}',
68
- 'category': '${(item.raw.ec_category as string[])?.[0]}',
69
- 'price': '${item.raw.price}',
+ 'name': '${item.raw.ec_name || item.title}',
+ 'category': '${(item.raw.ec_category as string[])?.[0] || item.raw.collection}',
+ 'price': '${item.raw.price || 0}',
70
});
71
72
coveoua('ec:setAction', 'detail');
0 commit comments