1 / 3
Nov 2009

Hi,



I am trying to use the EJEJC_multiAdd function to insert buttons which should add several products to the shopping cart at once to my websites as described here: 3http://www.e-junkie.com/bb/topic/575/pg/03



Unfortunatelly the buttons don't work for me although I did everything as described there I think. When a button is clicked the shopping cart popup opens but it just keeps displaying the "loading" graphic and nothing ever happens.



Here is a sample button code I use:

<a class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this);" target="ej_ejc" href="javascript:EJEJC_multiAdd(Array('https://www.e-junkie.com/ecom/gb.php?c=cart&i=275576&cl=60155&ejc=2','https://www.e-junkie.com/ecom/gb.php?c=cart&i=275578&cl=60155&ejc=2','https://www.e-junkie.com/ecom/gb.php?c=cart&i=275580&cl=60155&ejc=2'));">

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

</a>



And here a page the code is on:

http://wprobot.net/order/popular.php



Best regards,

Thomas

  • created

    Nov '09
  • last reply

    Nov '09
  • 2

    replies

  • 1.1k

    views

  • 2

    users

  • 7

    links

If you take a look at the previous forum again, 2http://www.e-junkie.com/bb/topic/575/pg/02, you will notice a slight difference between the code you have above and the way the other users have it written out. Try your code in this format and see if that works:



<a

href="javascript:EJEJC_multiAdd(Array('1https://www.e-junkie.com/ecom/gb.php?c=cart&i=275576&cl=60155&ejc=21','https://www.e-junkie.com/ecom/gb.php?c=cart&i=275578&cl=60155&ejc=2','https://www.e-junkie.com/ecom/gb.php?c=cart&i=275580&cl=60155&ejc=2'));">

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

</a>

Thank you very much E-junkieNinja! I feel kind of stupid for missing that now, seems like I was so obsessed with checking the Javascript for mistakes I missed the differences in the rest of the link.



Again, thanks for the prompt help.