Hello,
I am trying to insert some javascript into a shopsite 10 cart template, but the javascript is not being parsed.
After reading
http://shopsite.com/help/10.0/en-US/sc/ ... ntent.html
I put the javascript in the header, enclosed by <META name="MyContent" content="
....
javascript here
...
">
Viewing source after placing an order simply shows my javascript, complete with vars not their values.
Maybe I need to escape my quotes?
Can anyone provide a clue??
Thanks!
Javascript in Cart
-
- Posts: 322
- Joined: Mon Oct 09, 2006 3:28 pm
- Location: PA
Javascript will not work in a meta-tag. You put the javascript code in the FIELD for header information, but it should not be wrapped in a <meta> tag.
Javascript should be wrapped in <script></script> tags.
Also, for use in a CART template, you can use the field "Javascript added at start of built-in CheckIt function" that appears under "Commerce Setup"--Order System--Checkout.
Javascript should be wrapped in <script></script> tags.
Also, for use in a CART template, you can use the field "Javascript added at start of built-in CheckIt function" that appears under "Commerce Setup"--Order System--Checkout.
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
-
- Posts: 2572
- Joined: Fri Aug 04, 2006 12:02 pm
- Location: Anywhere
- Contact: