Page 1 of 2 12 LastLast
Results 1 to 10 of 25

Hybrid View

  1. #1
    Join Date
    May 2012
    Posts
    22
    Plugin Contributions
    0

    Default Embedding YouTube videos on Product pages

    Hi,

    Wondering if anyone can advise. We're looking to add some YouTube based videos to our product pages, to give users a better idea of how some products look.

    It looks like there is an issue with embedding YouTube on product pages. If I post in text mode, it simply writes out the embed code. If I paste it via HTML / Source mode, it doesn't save the code.

    I've managed to embed a video using the older Object option from YouTube, but it's now depreciated, so I don't really want to start using it.

    I've also found a plugin that seems to get around this, but it only allows 1 video per product, and (from the plugin description) it also removes the option to view the video full screen.

    Am I missing an obvious work around here? Has anyone else managed to achieve this with the latest YouTube embed code (not the Object version)?

    Thanks in advance.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Embedding YouTube videos on Product pages

    If you mean the product info pages, it should be a simple matter of pasting the YouTube <iframe> (copy imbed code) into the product description. - http://www.stevesh.com/demo2/index.p...&products_id=1

    If you mean in the product listing, that's different and requires a little more work.

  3. #3
    Join Date
    May 2012
    Posts
    22
    Plugin Contributions
    0

    Default Re: Embedding YouTube videos on Product pages

    Hey stevesh, thanks for this.

    It is indeed the product info page we want it to display on, not the product listings. Strange that the example you've given clearly works. When I try to copy / paste the code from YouTube, I experience 2 things:

    1) If I paste the code in WYSIWYG friendly view (not HTML view), and save, the iFrame code displays on the page, not the video.

    2) If I paste the code in HTML view, and hit update, it doesn't save the code I've just pasted. If I click back into HTML view, the code I've just pasted is gone.

    I've actually tried copying the YouTube iframe embed code directly from Youtube, for the same video you've used in your example, and still I'm experiencing these 2 outcomes.

    For some of the things we've been able to do with Zencart, it seems strange that what seems like such as simple thing as this is not so simple. The Joys!

    For info, it's ZC 1.5 we're using.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Embedding YouTube videos on Product pages

    Have you tried Plain Text mode ? That's what I used.

  5. #5
    Join Date
    May 2012
    Posts
    22
    Plugin Contributions
    0

    Default Re: Embedding YouTube videos on Product pages

    I hadn't, but have now, and it doesn't seem to work either. Very strange in fact. Paste as plain text generally seems to allow me to paste, unless i'm pasting an opening HTML tag. For example, it will let me paste "<", but won't let me paste "<iframe ...". It will also let me paste "iframe". I've even tried pasting it all individually i.e. "<", then "iframe", and so on. But still no luck.

    Tried putting in notepad first, then into Zen as well, just to check. Also tried in IE, Firefox and Chrome, each with different variations of no.

    Do you have any plugins or custom code in you demo site that could be helping it work? I've been looking around the web and quite a few people seem to be having the same issue of embed code not working.

    Thanks for the helps so far. I'll keep digging.

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Embedding YouTube videos on Product pages

    The test site is a clean installation of Zencart 1.5.1, with no mods. It does use a custom template, but it's just a clone of the Classic template and doesn't affect admin.

    I don't have a HTML editor installed. You don't mention which one you're using, or what version of Zencart, which could be important.

    What exactly do you mean by 'it won't let me paste' ? What exactly happens when you try ?

  7. #7
    Join Date
    May 2011
    Location
    Tennessee
    Posts
    377
    Plugin Contributions
    0

    Default Re: Embedding YouTube videos on Product pages

    I have read all the forums regarding adding YouTube videos to a product page and nothing seems to work.

    Has anyone added a YouTube video to a 1.5.7c version page running the Response template to a product page?

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: Embedding YouTube videos on Product pages

    here's what a search reveals
    • On a computer, go to the YouTube video or playlist you want to embed.
    • Click SHARE .
    • From the list of Share options, click Embed.
    • From the box that appears, copy the HTML code.
    • Paste the code into your website HTML

  9. #9
    Join Date
    May 2011
    Location
    Tennessee
    Posts
    377
    Plugin Contributions
    0

    Default Re: Embedding YouTube videos on Product pages

    I have tried your suggestion several times without success.

    "<iframe width="1255" height="706" src="https://www.youtube.com/embed/Ol6OiUNnlkw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>"


  10. #10
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Embedding YouTube videos on Product pages

    Quote Originally Posted by jodean View Post
    I have read all the forums regarding adding YouTube videos to a product page and nothing seems to work.

    Has anyone added a YouTube video to a 1.5.7c version page running the Response template to a product page?
    I assume you are adding the iframe code to the Products Description field in Admin, that you are using the ZC Responsive Classic template and that you don't have any other mods installed - I've just tried your code with success. Try switching to the Classic template to see if it works there. Otherwise we'll probably need a link to the site.
    Simon

 

 
Page 1 of 2 12 LastLast

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