onChange event
I've added this onChange event to a static item with success in the past. Today I cannot get the selected option to populate the cart. Whatever option I choose, it just ends up as one entry in the cart. Quantity and price are updated but the cart only shows one item. What am I missing? I updated the confirm pages to include the following as well:
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$eCart1->DisplayInfo("Name") ." ".$eCart1->DisplayInfo("Description")."";
below is the item:
<form name="eCart1_1_ATC_444" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">
<input type="hidden" name="eCart1_1_ID_Add" value="444" >
<input type="hidden" name="eCart1_1_Description_Add" value="" >
<input type="text" name="eCart1_1_Quantity_Add" value="1" size="4" >
<select name="eCart1_1_Price_Add" onChange="document.eCart1_1_ATC_444.eCart1_1_Description_Add.value=document.eCart1_1_ATC_444.eCart1_1_Price_Add[document.eCart1_1_ATC_444.eCart1_1_Price_Add.selectedIndex].text" >
<option value="Select" selected>Select</option>
<option value="20.00">Adult Oct 22</option>
<option value="20.00">Adult Oct 23</option>
<option value="20.00">Adult Oct 24</option>
<option value="15.00">Student Oct 22</option>
<option value="15.00">Student Oct 23</option>
<option value="15.00">Student Oct 24</option>
<option value="10.00">Childrens Oct 22</option>
<option value="10.00">Childrens Oct 23</option>
<option value="10.00">Childrens Oct 24</option>
</select>
<input type="submit" class="eC_FormButton" value="Add to Cart" name="eCart1_1_ATC">
</form>