If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Videos on Product pages - issue with smartphone display.

Videos on Product pages - issue with smartphone display.

Started by pewe on 13 Dec 2013, 10:26 AM · Views: 633

Results 1 to 3 of 3
13 Dec 2013, 10:26 AM
#1
pewe avatar

pewe

Zen Follower

Join Date:
Aug 2006
Posts:
134
Plugin Contributions:
0

Post #1 by pewe

After searching for some time I was not able to find a 'plugin' to add Videos to product pages - although plugins do exist for other packages - so have set up a manual method to do it.

Basically my method is as follows. For each product -

  • I created a web page on the server which has nothing on it except a 'responsive' video player with a menu of the videos relating to that product
  • In Zen Cart in the product description I add a link to call the video page in an Iframe.
  • I added some info to the template CSS to make the Iframe 'responsive'.

I have to create a separate video player for each product as the video file/s are hard coded into the web page, and have to upload the videos and thumbnails manually using ftp.

I have 2 questions -

  1. Does anyone know if there may be a simpler way to do this (eg a plugin)

  2. Can anyone possibly explain why when viewed on a smartphone there is such a large gap below the videos in description. The gap does not appear when viewed in a browser.

Here is how the video player appears on the PC
Attachment 13513

Here is how it appears on a Smartphone
Attachment 13514

And this is the content of the product description (no extra line breaks)
Attachment 13516

Any thoughts would be appreciated.

13 Dec 2013, 1:33 PM
#3
pewe avatar

pewe

Zen Follower

Join Date:
Aug 2006
Posts:
134
Plugin Contributions:
0

Post #3 by pewe

picandnix:

here's a thought...
http://www.zen-cart.com/downloads.php?do=file&id=1340

Thanks for the input.
I had seen that. :wink:
There are a number of alternatives for youtube video insertion, and I should have mentioned in my OP that I wanted to use videos which are not hosted by a third party (Youtube, Vimeo etc).
Also embedding a Youtube video can be done without a plugin by simply entering the 'embed' code from Youtube - which is exactly the same code I am using to embed my own hosted videos.

It is strange, however, that if I do 'embed' a Youtube video, although the code is exactly the same as I am using (different link obviously) the extra space does not appear when viewed on a phone :huh: