| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How can i set a java script? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I have a java script that usualy i just past on ths body part of the HTL code and works fine, but on x-cart i need make as javasript ".js", save on "skin1" directory, put a call for the java script on "home.tpl". However i am having trouble in find out how can i put the final view place on the page that i want to display without having any "Smart code error".
This is the code: Code:
So any ideas? Thanks!
__________________
Pedro
digitalnotions.i2u.shop shop.modestclassy.com.au4.1.9 X-Cart
X-Cart Business 5.3.6.0 Multi-vendor 5.3.6.0 |
|||||||
#2
|
|||||||
|
|||||||
![]() Put it in customer/home.tpl, but be sure you surround the JS with {literal} tags so smarty doesn't try to read it:
{literal} js here {/literal}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() I could kiss you now, but my wife does not allow!. Thanks man! Cya!
__________________
Pedro
digitalnotions.i2u.shop shop.modestclassy.com.au4.1.9 X-Cart
X-Cart Business 5.3.6.0 Multi-vendor 5.3.6.0 |
|||||||
#4
|
|||||||
|
|||||||
![]() Tested|! Works great now. Thanks again. Cya!
__________________
Pedro
digitalnotions.i2u.shop shop.modestclassy.com.au4.1.9 X-Cart
X-Cart Business 5.3.6.0 Multi-vendor 5.3.6.0 |
|||||||
#5
|
|||||||
|
|||||||
![]() I just see this..... i have also the Tabber Holder to show all tables compacted on product page but when i put this java script.. makes my tables no ale to visualize. Any ideas... ou anything else missing?
I am puting this: Code:
__________________
Pedro
digitalnotions.i2u.shop shop.modestclassy.com.au4.1.9 X-Cart
X-Cart Business 5.3.6.0 Multi-vendor 5.3.6.0 |
|||||||
|
|||
X-Cart forums © 2001-2020
|