PDA

View Full Version : Static Drop Down Menu


mike292921
03-08-2009, 04:12 PM
Ya, I am no php developer but can use some help.

Ecart static drop down menu with button. Now I have sizes for merchandise however when they select say size 6 well size 6 goes in the cart just fine however when I click size 7 it still adds in size 6 to the cart and says 2 quantities which is incorrect. I have the values set right like select size 6 size 6 is add to cart.

Anyone's and Everyone's help is appreciated, I thank you for your time.

Anybody have any ideas?

mike292921
03-08-2009, 04:20 PM
<form name="cart_4_ATC_shoes" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">
<input type="hidden" name="cart_4_ID_Add" value="shoes" >
<select name="cart_4_Description_Add">
<option value="size 5"> size 5</option>
<option value="size 9"> size 9</option>
<option value="size 10">size 10</option>
</select>
<br />
<input type="text" name="cart_4_Quantity_Add" value="1" size="4" >
<br />
<input type="image" src="../../WA_eCart/Images/CaboSunset/Btn2_EN_addtocart.gif" border="0" value="Add to Cart" name="cart_4_ATC">
</form>

Ray Borduin
03-09-2009, 08:13 AM
You need to open up the cart object and set the Description column as unique.

Since they share the same ID, it increments quantity, by telling the cart that the combination of ID and description are unique, it will treat them as new items.