Can a video thumbnail be added to the PDP image sl...
# suitecommerce
v
Can a video thumbnail be added to the PDP image slider? So when scrolled to or clicked on, a video of product can display.
j
@VS Not in any built-in way that I can think of. The way I’ve done it in the past is to create an extension that extends
Item.Model
to add some placeholder elements to the
item.images
. Then, in
ProductDetails.ImageGallery.View
, if that placeholder exists on the slide that’s being changed to using
onSlideBefore
, I add the video element into the placeholder with jQuery (to avoid loading a full video on page load). That’s for doing like an MP4 or something, but you could do something similar with a YouTube video.
v
@Jacob D Thank you for the reply. I am going to have to try this and see how it comes out.
@Jacob D Do you have examples of sites you have implemented it on?
j
@VS Unfortunately, no. It was something that was requested by sales as an “OMG, we need this now!” feature but has sat in sandbox for months because nobody has bothered to actually shoot any videos to be put into this space. 🤦‍♂️ I kind of modeled it after what Nike does, though. They don’t have theirs in a carousel and they obviously don’t use NetSuite, but my execution is similar: https://www.nike.com/t/air-jordan-1-hi-flyease-shoes-vpKLQc/CQ3835-601