Announcement

Collapse
No announcement yet.

Best way to display videos from youtube or other source on product pages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Best way to display videos from youtube or other source on product pages

    Hello all,
    We are going to be adding video product reviews to our store, and I am trying to determine best way to do this. I searched the forums, but all I could find is posts on hosting the video - we will not be hosting the video.

    My idea is to have a custom field for the youtube URL, and then a conditional statement where if that field has a value, display code to display video. Else, display nothing.

    Is this the best way? If so, what would this code look like? I don't know if there is a better way to do this using toolkit.
    Thanks for any help!
    Josiah

    #2
    Re: Best way to display videos from youtube or other source on product pages

    Hi Josiah,

    Did you ever get a solution for this? We are trying to implement exactly the same.

    Thanks,

    John

    Comment


      #3
      Re: Best way to display videos from youtube or other source on product pages

      Not sure if it is the best way but here is how we do it

      HTML Code:
      <mvt:if expr="l.settings:PRODUCT:CUSTOMFIELD_VALUES:CUSTOMFIELDS:VIDEO NE ''">
      <br><br>
      <center><iframe width="768" height="432" src="&mvt:product:customfield_values:customfields:video;" frameborder="0" allowfullscreen></iframe></center>
      
      </mvt:if
      Once teh video is uploaded to youtube we just pull the file name from the embed this video function and place it in the custom field called video. The field data is structured like such

      HTML Code:
      //www.youtube.com/embed/2V0htFt7mxg?feature=player_detailpage
      in page example

      http://tinyurl.com/l338jkx

      Comment


        #4
        Re: Best way to display videos from youtube or other source on product pages

        We did not find a solution yet - a developer is working on an improved lightbox with thumbnails for integrating video.

        jbart, thanks for that code, that is helpful for displaying inline on product templates

        Comment


          #5
          Re: Best way to display videos from youtube or other source on product pages

          We have implemented YouTube videos off of the alt image thumbnails for a number of our clients.

          Comment

          Working...
          X