E-junkie Ecommerce Forums » E-junkie Discussions
Tag Cloud for this topic: | |
| |
|
GuestUser member Posts: 808 |
We really like your product, but there is a major drawback. When we click "Add to Cart", the screen displays a great big yellow Paypal button. Is there any way for us to replace that button with one of our own? # POSTED ON: October 22, 2007 @ 16:42 GMT -7 |
|
E-JunkieExpert member Posts: 804 |
# POSTED ON: October 22, 2007 @ 16:43 GMT -7 |
|
GuestUser member Posts: 808 |
I went to the link above and the instructions are quite unclear. It says for me to add (or replace): function EJEJC_shown() { // will change the PayPal checkout button image jQuery("#btnPP").attr("src", http://yourdomain/yourimage); } But I cannot find the EJEJC_shown() function in the view cart or the add to cart buttons. # POSTED ON: October 22, 2007 @ 16:47 GMT -7 |
|
E-JunkieExpert member Posts: 804 |
You just need to add the following to your VIEW CART button code you got from E-junkie function EJEJC_shown() { jQuery("#btnPP").attr("src", http://yourdomain/yourimage); } # POSTED ON: October 22, 2007 @ 16:49 GMT -7 |
|
GuestUser member Posts: 808 |
I added the code so that the View Cart code looks like this: <ahref="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=9127&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"> <img src="https://www.e-junkie.com/ej/ej_view_cart.gif" border="0"> </a> <script language="javascript" type="text/javascript"> <!-- function EJEJC_lc(th) { return false; } function EJEJC_shown() { jQuery("#btnPP").attr("src",http://mydomain/myimage); } } // --> </script> <script type="text/javascript" src="https://www.e-junkie.com/ecom/box.js"></script> But it still doesn't work. # POSTED ON: October 22, 2007 @ 16:53 GMT -7 MODIFIED ON: October 22, 2007 @ 17:04 GMT -7 |
|
E-JunkieExpert member Posts: 804 |
You will need to add this before EJEJC_shown function EJEJC_config() { // will call EJEJC_shown function after the cart has rendered EJEJC_POSTCALL=true; } # POSTED ON: October 22, 2007 @ 16:54 GMT -7 |
|
GuestUser member Posts: 808 |
OK, here's what I have: <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=9127&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"> <img src="https://www.e-junkie.com/ej/ej_view_cart.gif" border="0"> </a> <script language="javascript" type="text/javascript"> <!--function EJEJC_lc(th) { return false; } function EJEJC_config() { // will call EJEJC_shown function after the cart has rendered EJEJC_POSTCALL=true; } function EJEJC_shown() { jQuery("#btnPP").attr("src",http://mydomain/myimage); } } // --> </script> <script type="text/javascript" src="https://www.e-junkie.com/ecom/box.js"></script> But it still does not work. # POSTED ON: October 22, 2007 @ 16:58 GMT -7 MODIFIED ON: October 22, 2007 @ 16:59 GMT -7 |
|
E-JunkieExpert member Posts: 804 |
Please rewrite function EJEJC_shown() { jQuery("#btnPP").attr("src",http://mydomain/myimage); } } to function EJEJC_shown() { jQuery("#btnPP").attr("src","http://mydomain/myimage"); } # POSTED ON: October 22, 2007 @ 17:03 GMT -7 MODIFIED ON: October 22, 2007 @ 17:05 GMT -7 |
You must be logged in to make a post. Please click here to login. | |






