Share via E-Mail
Share on Twitter
Share on Facebook
E-junkie Blog
E-junkie FaceBook Page
E-junkie @ Twitter

Create a single Add to Cart/Buy Now button, with a menu to select which item to buy

You can show a dropdown menu listing various items available to purcahse, with a single Add to Cart or Buy Now button to order the selected item. This may be particularly handy if you want to offer different versions of a file (e.g., sofware for Mac vs. PC) without showing separate purchase buttons for each version, even though each file would need to be set up as a separate product in Seller Admin.

In the examples given below, XXXXXX should be replaced with your own E-junkie Client ID, and YYYYYY and ZZZZZZ would be the Item Numbers for each product. You can add as many <option value ...etc.> lines as you wish, for however many items you want to list in the menu:

Here's the item menu code you'd need for an Add to Cart button:

<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=XXXXXX&ejc=2" target="ej_ejc" method="POST" accept-charset="UTF-8">
<select name="i">
<option value="YYYYYY">Windows</option>
<option value="ZZZZZZ">Macintosh</option>
</select><br>
<input src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" type="image" border="0">

The item menu code for a Buy Now button would be similar but use different action= and src= URLs:

<form action="https://www.e-junkie.com/ecom/gb.php?c=single&cl=XXXXXX" target="ejejcsingle" method="POST" accept-charset="UTF-8">
<select name="i">
<option value="YYYYYY">Windows</option>
<option value="ZZZZZZ">Macintosh</option>
</select><br>
<input type="image" src="https://www.e-junkie.com/ej/x-click-butcc.gif" border="0" alt="Buy Now"/></form>

This page added by E-junkieGuru on December 8th, 2011 @ 7:07 pm GMT -7
Updated by E-junkieGuru on December 8th, 2011 @ 7:09 pm GMT -7
  • Questions?
    Feel free to contact us if you don't find an answer in our Help pages or our Forums.

    If you just want to enquire about what all E-junkie does, you can check our feature list.
30 Day Money Back Guarantee
PayPal Certified Integration
Google Checkout Certified Integration
Slam the Online Scam