Saturday, February 14, 2009

How to embed YouTube videos in Joomla VirtueMart's product description

Configuration:
Joomla 1.5
VirtueMart 1.1.3

If you have problems putting youtube videos in the product descriptions here is how you can do it. Even if you can add the video in Articles (using TinyMCE or JCE editors), you will not be able to add one in the product description without this.

I've installed AllVideo 2.5.3 plug-in (get the zip file plg_jw_allvideos-v2.5.3_j1.5.zip) and install it using extensions Install/Uninstall.
Then go to Components / VirtueMart / Admin /Configuration / Global tab and check "Enable content mambots / plugins in descriptions?"

Then, you can add a youtube video by writing {youtube}A3Bqff0Ghws{/youtube} into your product description.

I've searched for this solution for 3 days now. I still don't get why you can't add directlly the necessary code using the editors. The tags get stripped down or modified...

4 comments:

Robeysan said...

Thanks - this helped out greatly

Smile said...

My pleasure!

JT said...

This works just fine, but if you want to take full advantage of YouTube's customisations etc, you can your "Sourcerer" - Its an editor plugin for Joomla, it allows you to add all sorts of code to your Joomla articles and product descriptions etc, aswell as PHP it allows embed codes, and Javascript too. It simply adds a button next to the "read more" button at the bottom of your WYZYWIG, you can click it and paste your code in. Done. :) http://extensions.joomla.org/extensions/5051/details

Smile said...

Thanks JT! I will try it.