Community Add-Ons
| Maintainers: | lalocespedes |
youoscommercetube
for osCommerce Online Merchant v2.2
With this Mod you can add videos from youtube for your productos info.
Youtube Video on product_info for OSC
///////////////////////////////////////////////////////////////////
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2007 osCommerce
Released under the GNU General Public License
///////////////////////////////////////////////////////////////////
YouoscommerceTube
Eduardo Cespedes Carrera
lalocespedes@gmail.com
http://suenachido.com
\\\\\\\\\\\\\\\\
Installation:
Remember backup your info before to install.
This is a full apckage intended for a Virgin install.
1. Upload all content of youtubeinfo.rar via ftp at your osc installation.
2. Run the sql file
3. Done. I hope you have a fun.
//////////////////////////////////////////////////////////////////////
How to use:
Go to osc control panel-catalog-and edit anyone product.
2. At last of the edit product page you can see a field of the form called ID_Video_Youtube.
Rigth there you have to put the Youtube video ID. What is this?
This is after the symbol equal (=) and before the symbol &.
Example this is the URL Video Youtube http://www.youtube.com/watch?v=msy39-tL0t8&feature=related
So the ID VIdeo youtube should be msy39-tL0t8.
3. Save the changes and job done.
//////////////////////////////////////////////////////////////////////
Problem with error on IE? When using other contribution like lightbox Use this code instead on product_info.php
<?php
$small_youtube = $product_info['products_youtube'];
if ($small_youtube == NULL) {
echo '';
} else {
$info_box_contents = array();
$info_box_contents[] = array('align' => 'center', 'text' => '
<object type="application/x-shockwave-flash" width="425" height="344" data="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=
0x999999" id="VideoPlayback">
<param name="movie" value="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=
0x999999">
<param name="allowScriptAcess" value="sameDomain">
<param name="quality" value="best">
<param name="bgcolor" value="#FFFFFF">
<param name="scale" value="noScale">
<param name="salign" value="TL">
<param name="FlashVars" value="playerMode=embedded" />
<param name="wmode" value="transparent" />
</object>
');
new infoBox($info_box_contents);
} ?>
No file attached.
