All Blogs
How to Use E-junkie: Adding Mutiple Products with One Button
When you setup your E-junkie buttons on your website, you may sometimes decide to sell certain products with other products, maybe they are usually purchased together and you want to make it easier on your customers. So, lets look into how to use a single Add to Cart button that will add more than one product to the cart.
Now, usually, we would suggest using our Bundle Product feature to combine products into a single product, it is made specifically to allow you to have a single button for multiple products, but the products are only listed in the cart as one item
But, sometimes a merchant might want to have the different parts of a “bundle” show up as separate line items in the cart.
For example,here are the standard button codes for two products:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=1382652&cl=XXXXX&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=1397333&cl=XXXXX&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>
To have both products added to the cart with a single Add to Cart button code you would need to setup your code with an array like so:
<a href="javascript:EJEJC_multiAdd(Array("https://www.e-junkie.com/ecom/gb.php?c=cart&i=1382652&cl=XXXXX&ejc=2","https://www.e-junkie.com/ecom/gb.php?c=cart&i=1397333&cl=XXXXX&ejc=2" )); "><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>
This multi-add option can be used to add more than just two products as well, or even multiple Variant options, but please keep in mind that we will always suggest our bundle product feature instead as it removes the need for extra coding on your part.
Do you have any questions about how to use E-junkie? If so, you can contact our support team at any time with this link here.
Now, usually, we would suggest using our Bundle Product feature to combine products into a single product, it is made specifically to allow you to have a single button for multiple products, but the products are only listed in the cart as one item
But, sometimes a merchant might want to have the different parts of a “bundle” show up as separate line items in the cart.
For example,here are the standard button codes for two products:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=1382652&cl=XXXXX&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=1397333&cl=XXXXX&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>
To have both products added to the cart with a single Add to Cart button code you would need to setup your code with an array like so:
<a href="javascript:EJEJC_multiAdd(Array("https://www.e-junkie.com/ecom/gb.php?c=cart&i=1382652&cl=XXXXX&ejc=2","https://www.e-junkie.com/ecom/gb.php?c=cart&i=1397333&cl=XXXXX&ejc=2" )); "><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>
This multi-add option can be used to add more than just two products as well, or even multiple Variant options, but please keep in mind that we will always suggest our bundle product feature instead as it removes the need for extra coding on your part.
Do you have any questions about how to use E-junkie? If so, you can contact our support team at any time with this link here.