| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
simple solution to add youtube video | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
simple solution to add youtube video
Hey, this is the simple mod, i have done to add youtube video.
going to the admin area, under products -> extra field Add one field, name it "Video Link" service name Video_link, and the default value as "There is no video related to this product yet." if you go the the product modify page in admin, in the last row you will find entry called Video link under skin1/customer/main/ , creat a new *.tpl called video.tpl add the code below: Quote:
And then go to skin1/main/product.tpl, After Quote:
add following code: Quote:
now the mode is complete, whenever you have upload video from youtube, copy the javascript code, and paste it into the video link field in the admin area under product modify. at last, go into your database, change extra field from char to text. See the result: www.lywoo.com video at http://www.lywoo.com/product.php?productid=291&cat=40&page=2 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: simple solution to add youtube video
Nice mod! Kudos for you
__________________
____________________________ X-Cart Gold 4.1.10 EWD Hosting | CDSEO Pro | One Page Checkout | Smart Search | Telafirma Dynamic Images | X-AOM | Product Importer Pro and many custom mods and tweaks found here... |
|||||||||
#3
|
|||||||
|
|||||||
Re: simple solution to add youtube video
Hello
When I add {if $active_modules.Extra_Fields ne ""} <p /> {include file="customer/main/video.tpl"} {/if} to product.tpl and click 'save' I get 'File Operation is Failed' message
__________________
www.giftsngadgets.com.au www.photoforum.com.au |
|||||||
#4
|
|||||||
|
|||||||
Re: simple solution to add youtube video
Really need to know what version you are using to be able to help you - please update your signature with that info. Thank you!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Re: simple solution to add youtube video
[
at last, go into your database, change extra field from char to text. sorry how do you change this in C.panel, i have done everything else fine but I dont know my way around php admin very well...great site by the way!
__________________
Version 4.1.12 |
|||||||
|
|||
X-Cart forums © 2001-2020
|