- Posts: 6227
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- AllVideos
- TIP: Add videos to VirtueMart products - with the help of the AllVideos Plugin!
TIP: Add videos to VirtueMart products - with the help of the AllVideos Plugin!
- JoomlaWorks
-
Topic Author
- Offline
- Admin
AllVideos has made it very easy for people since June 2006 ( :D) to add videos in their Joomla! content. So a natural progression to this would be to add videos in e-shops/product pages as well. We all know that VirtueMart is the best e-shop implementation out there.
So how do we enable video playback in VirtueMart, in an easy manner, similar to the AllVideos Plugin? Well... we just enable the use of AllVideos inside VirtueMart! :D
Here's the solution to enable the plugin for the "product details" page:
Open up the file administrator/components/com_virtuemart/html/shop.product_details.php and in the end of it, look for:
/* Finish and Print out the Page */
echo $template;
and add ABOVE this some code. Overall the change is this:
// start - enable "content type" plugin parsing
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$row->text = $template;
$results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, $page ), true );
$template = $row->text;
// end - enable "content type" plugin parsing
/* Finish and Print out the Page */
echo $template;
This will load the "content type" plugins in VirtueMart. That means that you can use the AllVideos Plugin to add videos in your products (as showcase) and even use the "Tabs & Slides in Content Items" Plugin to display your product's details in Tabs and/or Slides!!
Cool, huh??
Download both from www.joomlaworks.net and have fun!
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Riccardo Mariotti
-
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
Topic Author
- Offline
- Admin
- Posts: 6227
Works just fine here:
www.clipart.gr/component/page,shop.product_details/category_id,162/flypage,shop.flypage/product_id,2251/option,com_virtuemart/Itemid,60/lang,el/
If you see a white page, perhaps you have some template issue, or the path to the video file is wrong. Otherwise you would just see the Allvideos tags, right? ;)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Riccardo Mariotti
-
- Offline
- New Member
- Posts: 4
Please try applying the hack again...
Works just fine here:
www.clipart.gr/component/page,shop.product_details/category_id,162/flypage,shop.flypage/product_id,2251/option,com_virtuemart/Itemid,60/lang,el/
If you see a white page, perhaps you have some template issue, or the path to the video file is wrong. Otherwise you would just see the Allvideos tags, right? ;)
thanks for the reply, i use rocketheme vortex maby this is the cause? now i check out the link you gave me
Please Log in or Create an account to join the conversation.
- Rick Estrada
-
- Offline
- New Member
- Posts: 7
www.nogiera.com/component/page,shop.product_details/category_id,16/flypage,shop.flypage/product_id,17/option,com_virtuemart/Itemid,26/
so there is some conflict somewhere.. try installing the basic theme and see if it makes a difference
Please Log in or Create an account to join the conversation.
- ahmad
-
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- dax702
-
- Offline
- Senior Member
- Posts: 44
What would I need to do to enable that? Or by enabling it on the product details page, does it automatically enable it everywhere else in Virtuemart?
Thanks
Please Log in or Create an account to join the conversation.
- Airtek
-
- Offline
- Junior Member
- Posts: 23
Please try applying the hack again...
Works just fine here:
www.clipart.gr/component/page,shop.product_details/category_id,162/flypage,shop.flypage/product_id,2251/option,com_virtuemart/Itemid,60/lang,el/
If you see a white page, perhaps you have some template issue, or the path to the video file is wrong. Otherwise you would just see the Allvideos tags, right? ;)
sorry for the ot....but this site it's no nice!
compliments....how do you create the 360° view rotate? ;)
Please Log in or Create an account to join the conversation.
- dax702
-
- Offline
- Senior Member
- Posts: 44
Please Log in or Create an account to join the conversation.
- Spider_Mycron
-
- Offline
- New Member
- Posts: 4
i'm glad to be here with you guys, and i really wish to know how to activate or configure this great plugin or module.
i have no idea how to find that path, i looked in server and nothing like that ..
woyuld you kindly advice please ?
Regards
Please Log in or Create an account to join the conversation.
- dax702
-
- Offline
- Senior Member
- Posts: 44
Please Log in or Create an account to join the conversation.
- Spider_Mycron
-
- Offline
- New Member
- Posts: 4
Thanks
Please Log in or Create an account to join the conversation.
- dax702
-
- Offline
- Senior Member
- Posts: 44
Thanks for this very informative post! What if I want to enable the allvideos plugin on a category description page? For example, I have 3 series of one type of product, each has its own sub category under the main. But it would be nice to be able to have a main demo video play at the root category of this product.
What would I need to do to enable that? Or by enabling it on the product details page, does it automatically enable it everywhere else in Virtuemart?
Thanks
bump
Please Log in or Create an account to join the conversation.
- Erik Neff
-
- Offline
- New Member
- Personal text is rarely text and never personal.
Insert signature here.
Please Log in or Create an account to join the conversation.
- dax702
-
- Offline
- Senior Member
- Posts: 44
Please Log in or Create an account to join the conversation.
- djspade
-
- Offline
- New Member
- Posts: 2
Please Log in or Create an account to join the conversation.
- Erik Neff
-
- Offline
- New Member
- Personal text is rarely text and never personal.
Anyways - to follow up with my previous post, I have implemented this fix, and have found that it works quite well. I hope to have this working in one of my production sites shortly. Will link to it when it's ready.
Insert signature here.
Please Log in or Create an account to join the conversation.
- dax702
-
- Offline
- Senior Member
- Posts: 44
Please Log in or Create an account to join the conversation.
- Erik Neff
-
- Offline
- New Member
- Personal text is rarely text and never personal.
Insert signature here.
Please Log in or Create an account to join the conversation.
- dax702
-
- Offline
- Senior Member
- Posts: 44
Please Log in or Create an account to join the conversation.
- Forum
- Free Joomla Extensions & Templates
- AllVideos
- TIP: Add videos to VirtueMart products - with the help of the AllVideos Plugin!