PRESTASHOP VIDEO embedded (beta release)
goto pop up video version

I've never liked youtube video embedding, so I've developed this simple additional code in order to easly insert manufacturers' and products' video in prestashop. Video formats accepted: wmv OR flv. This code is neither a module nor a plug in: I like call it "small impact code" ;) If You like (or need) it, You can use it for free. This is a beta but seems to work correctly.. ok, enough correctly. Next steps: bugs' correction, best video + languages management, css style for pop-up video window, video size.
Use the prestashop forum to report bugs, please, so other users can verify and send possibly their own comments.


Open supplier.php and find $smarty->display(_PS_THEME_DIR_.$objectType.'.tpl');
Before this line write: include("video/videoSic.php");

Open product.php and find, at the end of file, $smarty->display(_PS_THEME_DIR_.'product.tpl');
Before this line write: include("video/videoSic.php");

Open [themes/YourTheme]/manufactuter.tpl and before <h2> line
write:{$videoSic}

Open [themes/YourTheme]/product.tpl and before {$HOOK_PRODUCT_FOOTER} line
write:{$videoSic}

The End....

Now You can create manufacturers and products flv OR wmv video (352x288 or... similar), in one or more languages. Rename video as n.wmv, n.flv (n= manufacturer or product ID) and put them in sub folder manufactures (if manufacturer video) or products (the other case). That's all!
If you create video (n.flv/n.wmv) in more languages then rename them as n_1.wmv, n_2.wmv, n_1.flv, n_2.flv... where 1=language 1, 2=language 2, ...

Example: manufacturer Tizio has ID=4. You must create something like tizio.flv OR tizio.wmv, rename as 4.flv OR 4.wmv and upload it in /video/manufacturers remote folder. If You have language 1=english and 3=italian and You create 2 video, tizioEngl.flv (tizioEngl.wmv), tizioItal.flv (tizioItal.wmv), You must rename them as 4_1.flv (4_1.wmv), 4_3.flv (4_3.wmv), and then upload them in same folder.

In product case it's all the same, but the remote folder is /video/products.


home

Conditions of Use

YOU CAN USE CODE FOR FREE BUT YOU CAN'T CHANGE SOURCE CODE WITHOUT AUTHOR'S PERMISSION

BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.