Product cards
It is possible to clear or add additional product cards to the video. Event detail video action update
provides videoFactory
which can be used to build a new video object to replace current video.
More about product factory and custom events.
Example:
document.addEventListener('fw:video:impression', function (event) {
event.detail.actions.video.update(({ videoFactory }) =>
videoFactory((videoBuilder) =>
videoBuilder
.clearProducts()
.product(productBuilder =>
productBuilder
.name('A Warm Hat')
.url(/* ... */)
// ... see more about product factory, follow the link above
)
.product(/* ... */)
)
)
})
Last updated
Was this helpful?