[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 451
  • Last Modified:

How do I add javascript to an x-cart shopping cart?

We are adding a javascript for a rotating image banner on the homepage of an x-cart shopping cart.  When the javascript is active it disables the shopping cart's script that calculates measurements/pricing for products.  Is there a way to add the javascript for the banner without interfering with any internal javascript running the x-cart functions?  Thanks.
1 Solution
You could put your rotatingbanner.php or whatever in a iframe

<iframe src="urltobanner.php" width="500" height="100" frameborder="0"></iframe>

Open in new window

netthingAuthor Commented:
Partial answer to issue we are having.
Shafiq KhanCommented:
Because X-Cart uses the Smarty template engine, ensure you wrap any javascript around {literal}{/literal} tags.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now