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.
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", 1http://yourdomain/yourimage1);
}
I added the code so that the View Cart code looks like this:
<ahref="1https://www.e-junkie.com/ecom/gb.php?c=cart&cl=9127&ejc=21"
target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
EJEJC_lc(this);">
<img src="https://www.e-junkie.com/ej/ejview_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="1https://www.e-junkie.com/ecom/box.js1"></script>
But it still doesn't work.
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/ejview_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="1https://www.e-junkie.com/ecom/box.js1"></script>
But it still does not work.
Please rewrite
function EJEJC_shown() {
jQuery("#btnPP").attr("src",http://mydomain/myimage);
}
}
to
function EJEJC_shown() {
jQuery("#btnPP").attr("src","http://mydomain/myimage");
}
Hello, I am having a similar problem, code here, but I am still getting the Paypal box:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=218441&ejc=2" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://imageshack.us/a/img109/5444/viewcart.png" border="0" alt="View Cart"/></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://imageshack.us/a/img195/989/checkout.png");
jQuery("#tdSell").attr("innerHTML",
"Thank you for supporting independent artists and for allowing US to do what we LOVE.
We can’t wait for you to get your delivery! Shannon and Juliet
");
}
// -->
</script>
<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>
Sure! I am actually trying to accomplish 3 things here:
1. Replace the Your Shopping Cart gif with my own image
2. Replace the Paypal button with my own image
3. Add a line of custom text next to checkout
Probably just missing something small, thanks for taking a look :)
1http://quiteapairkeepsakes.weebly.com/frame-1.html1
Aha, the problem is with your lines of custom text/HTML, which must be all on one line starting with " and ending in "); -- or you can split it into separate lines by using a \ at the end of each line which should continue on the next line, like so:
<a href="1https://www.e-junkie.com/ecom/gb.php?c=cart&cl=218441&ejc=21" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="1http://imageshack.us/a/img109/5444/viewcart.png1" border="0" alt="View Cart"/></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://imageshack.us/a/img195/989/checkout.png");
jQuery("#tdSell").attr("innerHTML",
"Thank you for supporting independent artists and for allowing US to do what we LOVE.
We can’t wait for you to get your delivery!
Shannon and Juliet");
jQuery("#imgHeader").attr("src", "2http://imageshack.us/a/img341/5448/yourshoppingcart.png2");
}
// -->
</script>
<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>
All our cart customization options are documented here:
E.g., to use a custom image for card-based direct payments using Authorize.Net or PayPal Payments Pro, you would add this line in your function EJEJC_shown(){} section:
jQuery("#btnCC").attr("src", "http://yourdomain/yourimage");
We don't document a customization for the TrialPay button, but looking at the cart's HTML code, it appears this should work:
jQuery("#btnTP").attr("src", "http://yourdomain/yourimage");
Yes, our cart detects when it is being viewed in mobile browser such as a smartphone or Apple iOS device, and in that case it displays the cart in a separate window/tab to maximize usability and legibility, rather than displaying the cart overlay inside your page, and only the overlay-style cart can be customized.
Hello, I am having the same problem again that I had above, trying to add a line of custom text to the checkout box. Code below:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=227007&ejc=2" target="ejejc"
class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);">
<img src="http://i592.photobucket.com/albums/tt3/shariknight/viewcart-7.png" border="0" alt="View Cart"/>
</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://i1201.photobucket.com/albums/bb350/littlebluedeer/littlebluedeers%20album%202/checkoutbutton.png");
jQuery("#tdSell").attr("innerHTML",
"If you cannot order the quantity/ you wish, please email theeverydayhome@yahoo.com /and we will let you know when the item is back in stock");
jQuery("#imgHeader").attr("src", "http://i1201.photobucket.com/albums/bb350/littlebluedeer/littlebluedeers%20album%202/checkoutheader.png");
}
// -->
</script>
<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>
Images are working fine but the text won't show up. Page where problem is occurring:
http://www.detailsforhomeandgarden.com/oef-cups.html
Hmmm, still not getting my line of text at the bottom of the checkout window. I removed that line of code, now I have:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=227007&ejc=2" target="ejejc"
class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);">
<img src="http://i592.photobucket.com/albums/tt3/shariknight/viewcart-7.png" border="0" alt="View Cart"/>
</a>
<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
function EJEJC_config() {
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
jQuery("#btnPP").attr("src","http://i1201.photobucket.com/albums/bb350/littlebluedeer/littlebluedeers%20album%202/checkoutbutton.png");
jQuery("#tdSell").attr("innerHTML",
"If you cannot order the quantity/ you wish, please email theeverydayhome@yahoo.com /and we will let you know when the item is back in stock");
jQuery("#imgHeader").attr("src", "http://i1201.photobucket.com/albums/bb350/littlebluedeer/littlebluedeers%20album%202/checkoutheader.png");
}
// -->
</script>
<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>
It appears your site is already using its own version of jQuery which may be conflicting with the jQuery our cart uses for customization; fortunately, we have a workaround for this case -- just call ejejc_jQuery instead of jQuery in your customization code, like so:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=227007&ejc=2" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);">
<img src="http://i592.photobucket.com/albums/tt3/shariknight/viewcart-7.png" border="0" alt="View Cart"/>
</a>
<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
function EJEJC_config() {
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
ejejc_jQuery("#btnPP").attr("src", "http://i1201.photobucket.com/albums/bb350/littlebluedeer/littlebluedeers%20album%202/checkoutbutton.png");
ejejc_jQuery("#tdSell").attr("innerHTML", "If you cannot order the quantity you wish, please email theeverydayhome@yahoo.com and we will let you know when the item is back in stock");
ejejc_jQuery("#imgHeader").attr("src", "http://i1201.photobucket.com/albums/bb350/littlebluedeer/littlebluedeers%20album%202/checkoutheader.png");
}
// -->
</script>
<script src="http://www.e-junkie.com/ecom/box.js" type="text/javascript"></script>
BTW, you may want to reconsider that custom checkout button, as I expect many buyers may not realize that's what they'd need to click to actually place their order and proceed to checkout. Make it as easy and obvious as possible for people to give you money. :^)
Suggested Topics
Topic | Category | Replies | Views | Activity |
---|---|---|---|---|
504 Gateway Timeout | E-junkie Discussions | 1 | 414 | Apr '24 |
Ebay delivery | E-junkie Discussions | 2 | 350 | Dec '24 |
Issue with CC processing | E-junkie Discussions | 3 | 228 | Aug '24 |
Credit card payments not accepted | E-junkie Discussions | 2 | 213 | Sep '24 |
PayPal IPN delays | E-junkie Discussions | 1 | 173 | Oct '24 |