E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2013, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Tue, 7 Feb 2012 06:47:01 GMT Sat, 25 May 2013 11:51:44 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #8 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 Tue, 7 Feb 2012 06:47:01 GMT E-junkie Discussions; BreezeTree Post #7 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 Tue, 7 Feb 2012 04:27:14 GMT
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.]]>
E-junkie Discussions; E-junkieGuru
Post #6 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 Mon, 6 Feb 2012 06:21:03 GMT
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?...]]>
E-junkie Discussions; BreezeTree
Post #5 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 Mon, 6 Feb 2012 03:56:46 GMT http://www.e-junkie.com/bb/topic/2121]]> E-junkie Discussions; E-junkieGuru Post #4 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 Sun, 5 Feb 2012 18:04:29 GMT 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=3f3baa5cf8c366c587f610be19dbb3a2&page_ln=en&jsod=1&1328448967','pp','');"
[/code]]]>
E-junkie Discussions; BreezeTree
Post #3 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 Sat, 4 Feb 2012 20:55:37 GMT E-junkie Discussions; BreezeTree Post #2 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 Sat, 4 Feb 2012 20:41:20 GMT http://www.e-junkie.com/ej/help.package.htm]]> E-junkie Discussions; E-junkieNinja Post #1 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 http://www.e-junkie.com/bb/topic/5720/pg/0#post20259 Sat, 4 Feb 2012 19:57:04 GMT E-junkie Discussions; BreezeTree