Skip to main content

Embed youtube video on product page

13 years 1 month ago - 13 years 1 month ago #124286 by tony@10uk.net
Apologies - I replied to a thread with a problem in the archived section.

www.hikashop.com/forum/4-how-to/4382-embed-youtube-movie.html

Basically trying to get a youtube video embedded into the product page, but stuck!

EDIT: It works fine when in a single article opened by a menu item.

Thanks,

Tony
Last edit: 13 years 1 month ago by tony@10uk.net. Reason: additional info

Please Log in or Create an account to join the conversation.

13 years 1 month ago #124343 by Xavier
Hi,

I think that you have to use the following code:
Code:
echo JHTML::_('content.prepare',$your_custom_code);

Please Log in or Create an account to join the conversation.

13 years 1 month ago #124352 by tony@10uk.net
And where would I put that?

Please Log in or Create an account to join the conversation.

13 years 1 month ago #124359 by Xavier
Do you have code already to display the youtube video ? Or you are using a component for that ?
Thanks to give us more informations.

On the product page, you can use a Joomla plugin which manage the videos and add the tag in the product description on the product edition page.

Please Log in or Create an account to join the conversation.

13 years 1 month ago #124367 by tony@10uk.net
I have installed the AllVideos plugin.

I have enabled the plugin.

I have a product description that contains lots of words.

I then added {youtube}vidref{/youtube}.

When viewed from front end, all the product description text disappears and there is no video. If I remove the tag, the text comes back as usual.

I have tested the plugin works in a normal article.

Please Log in or Create an account to join the conversation.

13 years 1 month ago #124404 by tony@10uk.net
Problem over.

I changed the order of the AllVideos plugin to last and now works within a Hikashop product page.

Thanks,

Tony
The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

12 years 4 months ago #160122 by Antonioseo
Hi Xavier
I don´t know embed a video in a product
I don´t know how to do this "On the product page, you can use a Joomla plugin which manage the videos and add the tag in the product description on the product edition page. "

Now I have intalled AllVideos and it´s enable, I have published my product, I have my video in youtube, but I don´t know how embed in my product this video.
This is my product: Enuresis

Thanks very much
Regards

Please Log in or Create an account to join the conversation.

12 years 4 months ago - 12 years 4 months ago #160124 by Antonioseo
Hi Xavier
I have found my answer :)

For the future people who will have the problem:
Insert within description text:
{youtube}qdtsvT1bnfw|600|450|1{/youtube}

Where qdtsvT1bnfw is part of url of youtube
and 600 y 450 is the size
1 is autoplay ON (0 autoplay OFF)
Last edit: 12 years 4 months ago by Antonioseo.

Please Log in or Create an account to join the conversation.

12 years 4 months ago #160125 by tony@10uk.net
As I found in my experiences...

- Install AllVideos as you have done.
- Enable and configure, ensuring the plugin is the last to load
- Add the tag in the product description - {youtube}vidref{/youtube} - where 'vidref' is the youtube reference, for example, in the URL www.youtube.com/watch?v=lGXHVlEklgQ , the 'vidref' is lGXHVlEklgQ. Check your editor does not strip the tags.
The following user(s) said Thank You: odaio

Please Log in or Create an account to join the conversation.

10 years 11 months ago #222299 by odaio
Hi Tony
Very nice experience to work with video and audio in hikashop.
Thanks

Please Log in or Create an account to join the conversation.

10 years 1 week ago - 10 years 1 week ago #253872 by lionel75
Hi
When we read the post we really don't understand all the terms and the context of the issue / problem /bug .
Here it is a joomla question rather than a Hikashop question .
Allvideos is a joomla plugin that let us add video in content area implemented by Joomla article or Hikashop product . All joomla plug parse the content to search a tag with parameters and convert it to widget define by plugin . For this plug in the tag look like {youtube}qdtsvT1bnfw|600|450|1{/youtube}. {youtube} is the tag and the parameters are short url qdtsvT1bnfw with video parameters |600|450|1.

@xavier
I know you post is more about php code than gui click . Even i ll search to know more about this code work in joomla eco system.
Can you give some information about your echo JHTML::_('content.prepare',$your_custom_code);

Regard's
Last edit: 10 years 1 week ago by lionel75.

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum