Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,461
    Plugin Contributions
    29

    Default Re: Embedding YouTube videos on Product pages

    Perplexed by the difficulties people seem to face with the issue of embedding videos, I have posted my own long-used solution on GitHub.

    Here is a link direct to the readme:

    https://github.com/torvista/Zen_Cart...ube_readme.txt

    Any problems: post in GitHub.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

  2. #22
    Join Date
    Feb 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: Embedding YouTube videos on Product pages

    @torvista

    Thanks for the script. I put it into my site correctly and it is working for me.
    However do you know how to modify the player to accept a Playlist instead of a single video?

    Thanks

  3. #23
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,461
    Plugin Contributions
    29

    Default Re: Embedding YouTube videos on Product pages

    As far as I am aware if you navigate from the youtube video owner mainpage and choose playlist to get to the video, the v= link will be of the playlist instead of a single video, so use that.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

  4. #24
    Join Date
    Feb 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: Embedding YouTube videos on Product pages

    Thanks for replying .
    I dont think I understand where to edit what you mentioned.

    I tried to follow the instructions here:
    https://developers.google.com/youtube/player_parameters

    change
    https://www.youtube.com/embed/VIDEO_ID
    to
    https://www.youtube.com/embed?listTy...st=PLAYLIST_ID

    By editing your script youtube_tn.js

    The line

    iframe.setAttribute("src", "//www.youtube.com/embed/"
    to
    iframe.setAttribute("src", "//www.youtube.com/embed?listType=playlist&list="


    But that did not work for me.

  5. #25
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,461
    Plugin Contributions
    29

    Default Re: Embedding YouTube videos on Product pages

    Sorry, it was too early in the morning....so after morning chores:

    Single video:

    Code:
    <div class="youtube-container">
    <p>Cat Video</p>
    <div class="youtube-player" data-yt_id="abc123abc123">
    </div>
    </div>
    Video as part of playlist:

    Code:
    <div class="youtube-container">
    <p>Cat Videos - Playlist</p>
    <div class="youtube-player" data-yt_id="abc123abc123" data-yt_params="list=xyz123xyz123xyz123xyz123xyz123xyz123">
    </div>
    </div>
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Product videos from youtube [Support Thread]
    By info1 in forum All Other Contributions/Addons
    Replies: 58
    Last Post: 31 May 2018, 01:54 AM
  2. v139h adding youtube videos to products - annoying error
    By kitcorsa in forum General Questions
    Replies: 1
    Last Post: 23 Jul 2013, 02:30 PM
  3. v150 Embedding Youtube Video
    By esugrue in forum General Questions
    Replies: 2
    Last Post: 9 Sep 2012, 09:04 AM
  4. Imbedding YouTube videos into ez-pages
    By strugglingnovice in forum General Questions
    Replies: 18
    Last Post: 14 Apr 2012, 01:16 AM
  5. Is there a way to embed my youtube videos?
    By outeredge2 in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 20 Aug 2010, 02:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR