Announcement

Collapse
No announcement yet.

Good way to add product videos?

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

    Good way to add product videos?

    I'd like to use a custom field to embed youtube videos. And I would love to just have the video take the place of the main image, but that seems too hard...

    Another option would be some generic video thumbnail that somehow launches the existing product image zoom for the embedded video (if that is even possible?)

    If anyone has done something similar, any ideas are appreciated.

    Thanks for reading!

    #2
    To open your video in a light-box, create a custom field with the code of youtube and populate it with the view code of the video. Then, on the product page, add something like this:
    Code:
    <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:youtube">
        <a class="popup-youtube" href="http://www.youtube.com/watch?v=&mvt:product:customfield_values:customfields:youtube;">Open YouTube video</a>
    </mvt:if>
    In your scripts.js file, within the jsPROD function, add this:
    Code:
    <script>
        $('.popup-youtube').magnificPopup({
            type: 'iframe'
        });
    </script>
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Thank you for the help

      Comment


        #4
        It's quite doable to show the video as the first image though, in case you are still interested, feel free to reach out vai our support desk - see example https://www.retroplanet.com/PROD/160263.html
        Sabine Sharp
        eCommerce Strategies & Solutions
        Glendale Designs
        Support Desk
        623.322.6066

        Comment

        Working...
        X