close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

onChange event

Thread began 10/05/2015 7:41 pm by Rick | Last modified 10/05/2015 8:59 pm by Rick | 492 views | 2 replies


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>
<input type="submit" class="eC_FormButton" value="Add to Cart" name="eCart1_1_ATC">

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...