1 / 4
Jan 2011

I had this working once, but now it isn't. Here is the code I presently have. The view cart button works, but the add to cart button doesn't.





<a href="javascript:EJEJC_multiAdd(Array(

'https://www.e-junkie.com/ecom/gb.php?c=cart&i=624179&cl=106318&ejc=2',

'1https://www.e-junkie.com/ecom/gb.php?c=cart&i=624181&cl=106318&ejc=21'

));"><img src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" border="0" alt="Add to Cart"/></a>



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=106318&ejc=2" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ejview_cart.gif" border="0" alt="View Cart"/></a>

<script language="javascript" type="text/javascript">

<!--

function EJEJC_lc(th) { return false; }

// -->

</script>

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





Thanks,

Doug

  • created

    Jan '11
  • last reply

    Jan '11
  • 3

    replies

  • 1.1k

    views

  • 2

    users

  • 9

    links

Hm, the link to your page doesn't seem to be working, requires a login to access it, but I tested the Add to Cart code you provided in your first post, and that worked perfectly in my test page. We can have a look at the actual code in your page if you could provide a page that isn't password-protected, or email the page login to our Support team:

https://www.e-junkie.com/ej/contact.php

I had tried to click on the add to cart button in the preview window before actually publishing the change and it didn't work. I published the change and it works as you said. It seemed strange that the view cart button would work in preview, but the add to cart button wouldn't. I thought I remembered that both would work.



Thanks!