Menu
Contact Us

E-junkie Guide

Tips and tools for beginners and experts alike.

  • E-junkie Help
  • My site already uses jQuery, and cart customization is not working.

If your site already uses jQuery, it could be conflicting with the jQuery our cart uses for customization; this usually affects innerHTML customizations in particular. When our cart detects such a conflict, your cart customization code can reference the ejejc_jQuery object instead of jQuery -- e.g.:

function EJEJC_config() {
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
ejejc_jQuery("#tdPmnt").attr("innerHTML",
  "Any <b>HTML</b> you want to show");
}

You can also force the above behavior even without a jQuery conflict in your page; this can be handy for testing or if some of your pages load jQuery while others don't, allowing you to use the same View Cart code with customization on every page. To do this, just add EJEJC_PLAYNICE=true; to your function EJEJC_config(){} section -- e.g.:

function EJEJC_config() {
EJEJC_PLAYNICE=true;
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
ejejc_jQuery("#tdPmnt").attr("innerHTML",
  "Any <b>HTML</b> you want to show");
}

Was this article helpful?
Yes, thanks!
Not really

Can't find what you're looking for?

Contact Us