PDA

View Full Version : Static dropdown


khaled376930
04-14-2009, 03:25 AM
Hi is it possible to create a static dropdown when buying a product to choose between colours for a .php shopping cart with ecart. If so any advise would be great fully appreciated.

Ray Borduin
04-14-2009, 08:16 AM
Add a column to the cart for colours.

Then update your add to cart button and make that field updatable as a select list.

Then click ok and add the colors you want to the list.

khaled376930
04-14-2009, 12:40 PM
Hi Ray

Many thanks for the reply. How do I add a colum to the cart, sorry not done this before and have no idea how to do it.
This is the code I have.

<form name="eCart1_1_ATC_tiana" 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="wedding bracelet 01" />
<input name="eCart1_1_Quantity_Add" type="text" class="quantity" value="1" size="1" >
<input type="image" src="../WA_eCart/Images/Pacifica/a_add_basket.gif" border="0" value="Add to Cart" name="eCart1_1_ATC" alt="Add item to basket">
</form>

Ray Borduin
04-14-2009, 12:41 PM
Double click on the cart object or open the cart object panel and click the edit button.

Then click on the columns tab and click the plus button. Maybe take a glance at the documentation.

khaled376930
04-14-2009, 02:57 PM
Cheers ray works well, do you have any idea how I pass that information onto paypal from the checkout. If I create a new checkout will it update the new field or do I have to add some additional code.

Ray Borduin
04-14-2009, 02:59 PM
What type of paypal checkout... you would probably have to update the values of some hidden form elements on the confirm page.