Quantity Discounts - The Preserves Store

Here is an example of how to give a price break on a group of items:


Americart Example (Pick 3 or 6)

This example allows you to give price breaks on similar items that customers can select from a group. Play with this page a bit. It has some cool features.

[Use of the =CA= tag for quantity adjustment control.]
[Use of <br> inside options for a more clear cart display.]
[Use of the "parturl" tag for linkback to the item from the cart display.]

109 APRICOT 15.5 OUNCE JAR
122 BLACKBERRY 15.5 OUNCE JAR
143 BOYSENBERRY 15.5 OUNCE JAR
152 DAMSON PLUM 15.5 OUNCE JAR
157 PEACH-A-COT 15.5 OUNCE JAR
205 APPLE-CINNAMON 15.5 OUNCE JAR
208 BLACKBERRY 10.5 OUNCE JAR

<form action="http://www.cartserver.com/sc/cart.cgi" method="post">
<table border="1" cellspacing="1" cellpadding="2">
<tr>
<td><input type="checkbox" name="op2" value="&lt;br&gt;109-Apricot" />
109 </td>
<td><strong>APRICOT</strong></td>
<td><strong>15.5 OUNCE JAR</strong></td>
</tr>
<tr>
<td><input type="checkbox" name="op3" value="&lt;br&gt;122-Blackberry" />
122 </td>
<td><strong>BLACKBERRY</strong></td>
<td><strong>15.5 OUNCE JAR</strong></td>
</tr>
<tr>
<td><input type="checkbox" name="op4" value="&lt;br&gt;143-Boysenberry" />
143 </td>
<td><strong>BOYSENBERRY</strong></td>
<td><strong>15.5 OUNCE JAR</strong></td>
</tr>
<tr>
<td><input type="checkbox" name="op5" value="&lt;br&gt;152-Damson Plum" />
152 </td>
<td><strong>DAMSON PLUM</strong></td>
<td><strong>15.5 OUNCE JAR</strong></td>
</tr>
<tr>
<td><input type="checkbox" name="op6" value="&lt;br&gt;157-Peachacot" />
157 </td>
<td><strong>PEACH-A-COT</strong></td>
<td><strong>15.5 OUNCE JAR</strong></td>
</tr>
<tr>
<td><input type="checkbox" name="op7" value="&lt;br&gt;205-Appl-Cinn" />
205 </td>
<td><strong>APPLE-CINNAMON</strong></td>
<td><strong>15.5 OUNCE JAR</strong></td>
</tr>
<tr>
<td><input type="checkbox" name="op8" value="&lt;br&gt;208-Blackberry" />
208 </td>
<td><strong>BLACKBERRY</strong></td>
<td><strong>10.5 OUNCE JAR</strong></td>
</tr>
<tr>
<th colspan="3"> <select type="option" name="item">
<option value="s-8882"> Pick 3 or 6 from above, then select matching quantity/price here. </option>
<option value="s-8882^=CA=GP3^Group of three^7.83333333^3"> Three for $23.50 </option>
<option value="s-8882^=CA=GP6^Group of six^7.00^6"> Six for $42.00 </option>
</select>
<br />
<input type="hidden" name="parturl" value="http://www.cartserver.com/demopages/pick3or6.html" />
<input type="image" border="0" name="add" src="/images/addtocart.gif" />
</th>
</tr>
</table>
</form>

Weaknesses:
Won't allow more than one of a single type to be chosen.
Doesn't check to see if they chose the correct number of items.

Strengths:
Allows easy price breaks for quantity purchaes from a group.
Won't allow the increase/decrease to mess up the grouping.


Copyright. All rights reserved. Americart - 2011