3 / 3
May 2014

Hi, I am totally new here and so far ejunkie is great! I am trying to change the checkout button image on my cart and I am having a hard time.



I have read this page: http://www.e-junkie.com/ej/help.custom-cart.htm , but I must be doing something wrong still, because I cant seem to get it working. It is totally just me, I don't know what I'm doing! :wink:



Does anyone have any examples of how the code should look to get the cart image to change?



here is what I have tried to add: function EJEJC_config() { EJEJC_POSTCALL=true; <br />
} function EJEJC_shown() {<br />
jQuery(&quot;#btnPP&quot;).attr(&quot;src&quot;, &quot;my new image here&quot;);&gt;}




Any help would be greatly appreciated!



Thanks!



Tom

  • created

    May '14
  • last reply

    May '14
  • 2

    replies

  • 1.3k

    views

  • 2

    users

  • 3

    links

Hi Tom,



Here's an example of the cart code with the customization added:



<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://yourdomain/yourimage");

}

// -->

</script>

<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>



Note that you still need to fill in the part that says http://yourdomain/yourimage with the address of your own image.



If you look at the full View Cart code as provided in your system you'll see that there's a little more at the beginning which actually creates the clickable View Cart button itself. The code above is strictly what creates the overlay cart and customizes its contents and won't create a button on its own.