E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2012, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Fri, 14 Mar 2008 15:24:04 GMT Fri, 10 Feb 2012 18:31:32 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #2 http://www.e-junkie.com/bb/topic/2259/pg/0#post5431 http://www.e-junkie.com/bb/topic/2259/pg/0#post5431 Fri, 14 Mar 2008 15:24:04 GMT
If you want to promote your items in the shopping cart itself, you will need to use JavaScript manipulation for that.

Please add the following your add to cart button code:

function EJEJC_config() {
EJEJC_POSTCALL=true;
}

function EJEJC_shown() {
// XXXX is item number of the product which when added will trigger the upsell,
// YYYY is the item number of the product being promoted in the cart.

if (EJEJC_added('XXXX')!==false && EJEJC_added('YYYY')===false) {
jQuery('#tdSell').attr("innerHTML", '<a
href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=YYYY&cl=...&ejc=2"
target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
EJEJC_lc(this);">Buy Our other product!</a>');

}
}]]>
E-junkie Discussions; E-JunkieExpert
Post #1 http://www.e-junkie.com/bb/topic/2259/pg/0#post5431 http://www.e-junkie.com/bb/topic/2259/pg/0#post5431 Fri, 14 Mar 2008 15:23:33 GMT E-junkie Discussions; GuestUser