1 / 7
May 2010

How can this be done? I want to have several items, maybe a dozen or more on the screen with checkboxes.

The buyer checks the ones he wants and clicks 'Add To Cart' and they all go to the cool javascript cart.

Thanks.

  • created

    May '10
  • last reply

    Jun '10
  • 6

    replies

  • 1.9k

    views

  • 4

    users

  • 4

    links

That would require some custom javascript in your page, probably working with the multiAdd function of our cart which, by itself, normally works like so:



<a href="javascript:EJEJC_multiAdd(Array(

'7https://www.e-junkie.com/ecom/gb.php?c=cart&i=YYYYYY&cl=XXXXX&ejc=27',

'2https://www.e-junkie.com/ecom/gb.php?c=cart&i=ZZZZZZ&cl=XXXXX&ejc=22'

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



The array list can have as many Add to Cart URLs as you wish, so your checkboxes would determine which products' URLs get included in that multiAdd array.



If you need someone to program this for you, we can recommend the competent, E-junkie-experienced developers listed at the Developer Directory link at the very top of our site. I think Andrew at EasyE-junkie.com in particular has done some rather fancy things with multiAdd before, so I'd suggest checking with him first.

Well that is cool, thanks!



I can make checkboxes, any tips on how to get the items selected turned into multiple URLs?

That's what you'd need to program (or hire someone to program) some custom javascript for, to add into your own page. We support guys are not programmers and don't actually have any more specific programming advice to give; if you're not already a programmer yourself, any advice we could give would be useless anyway, and a competent programmer should know how to accomplish this objective without needing any advice. :^)

Ok, well, just thought I'd give it a try : )



Thanks much. After getting your answer, I knew what to search the discussion boards for and found several more answers about the multAdd.



Really enjoying e-junkie and the awesome support guys!

14 days later

The continue shopping function is not working, whenever click on continue shopping it redirects the products page after pressing the addcart button the shopping cart displays the present product details only not displaying the previous product details and clicking on view cart button always it displays the message your cart is empty. How to rectify this problem? Please explain with one example

There's no way to say exactly what is going wrong here without being able to look at it in person. Could you give us a link to the web page where you have your buttons set up and are getting this problem?



If your test page happens to not be online yet that would actually explain your problem--our buttons need to be on a live web page with a named domain to function properly.