How do I add JavaScript to my cart?
Posted by Michael G.K on 30 August 2008 05:12 AM

The shopping cart requires any JavaScript code to be surrounded by {literal} tags for the JavaScript to work. The {literal} tag tells the smarty engine to ignore any functions between the tags.

Example:

{literal}
alert("Welcome!");
{/literal}

lease note: IXXO Cart uses Smarty templates engine to generate HTML pages. It requires some basic programming skills to edit these files. If you're unfamiliar with HTML we STRONGLY advise against changing any code on your cart as these changes could disable the functions of the cart. Our customer support team cannot support you on any customizations or code changes you make to the application.

Two methods of having additional, interactive images in your description areas:

<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
 newwindow=window.open(url,'name','height=200,width=150');
 if (window.focus) {newwindow.focus()}
 return false;
}

// -->
</script>

(150 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).