There is a filter in VirtueMart, which cuts the object and the embed html tags.
In order to embed YouTube video and other Flash files in your VirtueMart product description area you should remove the object and the embed items from the following array:
1
|
var$tagBlacklist=array('applet','body','bgsound','base','basefont','embed','frame','frameset','head','html','id','iframe','ilayer','layer','link','meta','name','object','script','style','title','xml');
|
The new array will be:
1
|
var$tagBlacklist=array('applet','body','bgsound','base','basefont','frame','frameset','head','html','id','iframe','ilayer','layer','link','meta','name','script','style','title','xml');
|
The modification should be completed in theadministrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php file.
Then you can edit the product description html code and embed the video using similar lines:
1
2
3
4
5
|
<div align="center">
<objectwidth="445"height="364"><param name="movie"value="http://www.youtube.com/VIDEO PATH"></param><param name="allowFullScreen"value="true"></param><param name="allowScriptAccess"value="always"></param><embed src="http://www.youtube.com/VIDEO PATH"type="application/x-shockwave-flash"allowfullscreen="true"allowScriptAccess="always"width="445"height="364"></embed></object>
</div>
|
You should replace http://www.youtube.com/VIDEO PATH with your video file URL.
You need help with a shopping cart? hostlantern is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!