Share via E-Mail
Share on Twitter
Share on Facebook
E-junkie Blog
E-junkie FaceBook Page
E-junkie @ Twitter

E-junkie Ecommerce Forums » E-junkie Discussions

Tag Cloud for this topic:

View Cart not Working After Customizing PayPal Image in Add to Cart



BirdBarn
member
Posts: 2


After doing some research on the forums I was ably to customize my "Add to Cart" button and changed the PayPal image to another checkout image. In doing so, the View Cart button no longer works.

Here is the code for my "View Cart" button. Any help would be appreciated.

<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=216916&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://www.artsupplies.co.uk/files/images/proceed-to-checkout- button.gif");
}
// -->
</script>
<script type="text/javascript"src="https://www.e-junkie.com/ecom/box.js"></script>


#
POSTED ON: July 29, 2012 @ 11:57 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 4343


The problem is the linebreak in this part:

target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
EJEJC_lc(this);">

The attribute onClick="javascript:return EJEJC_lc(this);" can't be split into separate lines.

Also, I would recommend adding a linebreak after the <!-- like so:

<!--
function EJEJC_lc(th) { return false; }
...etc.


#
POSTED ON: July 29, 2012 @ 17:24 GMT -7




BirdBarn
member
Posts: 2


Awesome!!! Thanks for the quick response!!! Works perfectly now!!!


#
POSTED ON: July 29, 2012 @ 17:36 GMT -7


You must be logged in to make a post. Please click here to login.

30 Day Money Back Guarantee
PayPal Certified Integration
Google Checkout Certified Integration
Slam the Online Scam