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

E-junkie Ecommerce Forums » E-junkie Discussions

Tag Cloud for this topic:

Multiple products with single Buy Now button?



BreezeTree
member
Posts: 9


I have a product that is available with volume discounts, so the easiest way for me to set this up is to use a buy now button and append the &amount=value_you_want_to_pass to the querystring. I also offer a CD backup, and as far i can can tell, there isn't a way to pass two products with single buy now button. Is there an HTTP POST method that I could set these values in a form and pass to e-junkie?


#
POSTED ON: February 4, 2012 @ 12:57 GMT -7
MODIFIED ON: February 4, 2012 @ 13:34 GMT -7




E-junkieNinja
E-Junkie Crew
Posts: 668


I would suggest using our bundle product feature to combine two products into a single product and then use the Buy Now button from that bundled product:
http://www.e-junkie.com/ej/help.package.htm


#
POSTED ON: February 4, 2012 @ 13:41 GMT -7




BreezeTree
member
Posts: 9


Will bundling allow different quantities of each? Typically, if a group buys multiple licenses for my software and want to add a CD backup, they only want 1 CD. When I looked at the bundling option, my impression was that - in this scenario - the customer ordering 5 licenses would also get 5 CD's.


#
POSTED ON: February 4, 2012 @ 13:55 GMT -7




BreezeTree
member
Posts: 9


On http://www.e-junkie.com/ej/help.custom.purchase-buttons.htm it states:
ejunkie_siteTo pass the parameters described below, you can [...] use an HTML form to pass them as form fields.

http://www.e-junkie.com/ecom/gb.php?i=XXXXXX&c=YYYYY
...where XXXXXX is the item number and YYYYY is your E-junkie client account ID


Which suggests it's fairly straightforward to create an form for order submissions for a single product, but that page doesn't give guidance on multiple products. When I look at the Fat Free Cart, I see the fields listed below. This seems fairly straightforward to replicate in my own checkout page, by there are a few things that aren't clear.

1. Do ci_id_array[x] and sub_item_id_array[x] correspond to anything in particular? they don't seem to match anything in my account or product setup.

2. The country id selector calls a javascript function. I'm guessing that this sets a country value, but I don't see a corresponding form input field.

3. The checkout onclick calls EJEJC_checkout(). I assume this appends the account id and validates the input, but I'm not clear on whether the cart_id and md5 checksum are appended to the action url.

Any guidance on this would be greatly appreciated.

[code]
<form accept-charset="UTF-8" method="get" action="https://www.e-junkie.com/ecom/gb.php">

<!-- repeated fields for each cart item -->
<input type="text" name="quantity_array[0]" maxlength="5" value="1" />
<input type="hidden" name="ci_id_array[0]" value="12345678" /> <!-- value corresponds to ?? -->
<input type="hidden" name="sub_item_id_array[0]" value="12345678" />
<input type="hidden" name="item_number_array[0]" value="" /> <!-- my product id -->
<input type="hidden" name="cart_item_price_array[0]" value="" />
<input type="hidden" name="total_item_price_array[0]" value="" /> <!-- product price -->
<input type="hidden" name="prev_quantity_array[0]" value="1" /> <!-- user entered qty -->

<!-- shipping fields -->
<input type="hidden" name="shp_mthd" value="88" />
<select name="to_country" id="countryDD" onchange="EJEJC_cntrdd2(true);">
<input type="text" name="zipcode" id="fldZipcode" maxlength="50" value="" />

<!-- non-repeated fields -->
<input type="hidden" name="cart_total" value="" /> <!-- total cost -->
<input type="hidden" name="min_cart_item_total" value="0.00" />
<input type="hidden" name="cart_error_code" value="0" />
<input type="hidden" name="page_ln" value="en" />
<input type="hidden" name="shtx_calc_done" value="true" />
<input type="hidden" name="shtx_calc_needed" value="true" />

<!-- checkout button code -->
onclick="EJEJC_checkout(' client_id=1234&cart_id=32099766&cart_md5=3f3baa5cf8c366c587f610be19dbb 3a2&page_ln=en&jsod=1&1328448967','pp','');"
[/code]


#
POSTED ON: February 5, 2012 @ 11:04 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 3734


It seems like you may be interested in using our cart's multiAdd function, summarized here:
http://www.e-junkie.com/bb/topic/2121


#
POSTED ON: February 5, 2012 @ 20:56 GMT -7




BreezeTree
member
Posts: 9


Unfortunately, I don't think that will work in this situation. (That is a cool feature, though.)

I have two conflicting requirements.

1. I need to calculate volume discounts and override the amount.
2. I need to allow orders with multiple products of different qualities.

#1 will work with the Buy Now button overriding the price, and #2 is essentially what the cart is made for - but there it has no mechanism to override the price.

That's why I was delving into the form fields to see if I could create my own order form and pass the fields to e-junkie.com/ecom/gb.php?...


#
POSTED ON: February 5, 2012 @ 23:21 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 3734


I think we may have started off on the wrong foot here and wound up trying to reinvent the wheel. The requirements you've described can be accomplished by using our Cart buttons (rather than Buy Nows), so you could take advantage our cart's standard discount and quantity features.

Add to Cart buttons would let buyers add various items to their cart order before they proceed to checkout for all items at once:
http://www.e-junkie.com/ej/help.buttons.cart.htm

You can configure any product with "Let buyer edit quantity" enabled, so the buyer can enter their preferred order quantity for each item in their cart.

You can configure automatic volume discounts for specific products using our discount settings documented on this help page:
http://www.e-junkie.com/ej/help.discounts.htm

E.g., in Seller Admin > Cart Discounts you would select the relevant product, leave the Discount Codes field blank (so the discount applies automatically to orders which meet the discount's Min. Item Qty./Total thresholds), set a Min. Item Qty. threshold (leave Min. Item Total and Max. Use Count blank), and specify how much to mark down that product's per-unit price when the Min. Item Qty. threshold is met.

You can also create a series of discounts with higher Min. Item Total thresholds and deeper per-unit price discounts. Discounts with higher min. thresholds would override those with lower thresholds. Just make sure you give each one a unique Discount Name, since that's how we distinguish one discount from another.


#
POSTED ON: February 6, 2012 @ 21:27 GMT -7




BreezeTree
member
Posts: 9


Oh, man (smacks forehead), that's too easy! I like easy, but it'd feel better if I hadn't spend so much time trying to figure this out. I've been using e-junkie since 2007, and I really wish I'd known about this ages ago. Thanks E-JunkieGuru.


#
POSTED ON: February 6, 2012 @ 23:47 GMT -7


You must be logged in to make a post. Please click here to login.

30 Day Money Back Guarantee
PayPal Certified Integration
Google Checkout Certified Integration
Slam the Online Scam