I use this method:
https://github.com/torvista/Zen_Cart...YouTube_videos
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
Hi Simon.
Sorry i may have explained myself in a wrong way.
So, when i goto list a product in my catagories etc. i enter details about my product, price, description etc. When i get to entering text for the product information, in the box there is a small icon to add media URL to my description.
That is where i add the Youtube url which then i get an error.
Thanks
Sorry, I'm not familiar with that option of adding a media url. I can't see it in the latest version of Zen Cart, perhaps it's linked to media manager or something. Others may know more.
The way I embed videos on to a product page is just to add the embed code to the Products Description field. The code would look 'something' like this:
Code:<iframe class="youtube-video" title="NCBI embedded YouTube video player example" src="https://www.youtube.com/embed/xxxxxxx?list=xxxxxxxxxxxxxx&mute=1?html5=1&enablejsapi=1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
Simon
You mean the icon in product description editor window. I tried it on V2.1.0 and no problem to add a YouTube video.
On ZC v1.5.8a, there is an iframe icon but when using it I got a message 'Firefox can't open this page'. The HTML code made by CKeditor is probably wrong.
Try this:
Click on source icon and insert this code where you want your video. Adjust the link for your YouTube video in the src part and size too:
>Code:<iframe src="https://www.youtube.com/embed/YouTubVideoCode" width="560" height="314" allowfullscreen="allowfullscreen"></iframe