1 / 4
Nov 2014

I would like to do the EJEJC_multiAdd (as shown in other threads), but I would also like the ability to set the qty for each item as well. Is there a querystring parameter that allows me to set this? If not is there another way to achieve the same thing?

  • created

    Nov '14
  • last reply

    Nov '14
  • 3

    replies

  • 1.3k

    views

  • 2

    users

  • 8

    links

You can simply append &quantity=N (where N is the number of units you want to add) to the end of the item's Add to Cart URL. If you're using our multiAdd function, that would look like this:



<a href="javascript:EJEJC_multiAdd(Array(

'https://www.e-junkie.com/ecom/gb.php?c=cart&i=YYYYY&cl=XXXXX&ejc=2&quantity=5',

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

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

Thanks.



Is there a documentation page that details the full javascript capabilities for the cart? I have looked through the documentation section and didn't find anything. The only way I even know about EJEJC_multiAdd() is from the forum, not the documentation.

Anything not documented in our help pages, such as the multiAdd function, would technically be an "unofficial hack"; a few other such hacks are discussed here:



Displaying a "minicart" summary of cart item total/qty. in your page:

http://www.e-junkie.com/bb/topic/3086



Using the cart's "lightbox" overlay to display other content:

http://www.e-junkie.com/bb/topic/4458



Other, officially-supported cart customizations and button-code URL parameters are covered here (these are linked under "Customizing E-junkie" in our main help index):

http://www.e-junkie.com/ej/help.custom.purchase-buttons.htm

http://www.e-junkie.com/ej/help.custom-cart.htm