close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Joining Option Name And Price

Thread began 3/12/2010 3:57 pm by SaladoGuy | Last modified 3/12/2010 4:43 pm by Jason Byrnes | 763 views | 1 replies |

SaladoGuyBeta Tester

Joining Option Name And Price

Here is a link to our website product page product.php.
We are trying to link the Price drop down to the Name drop down.

Right now the Price drop down sends the correct price to the shopping cart page, but I need some text on the shopping cart page that shows what size they picked.

So I added a second drop down (Name) that adds the text I want to the shopping cart page.
The big problem with this is that you have to select the same option from each drop down in order for it to work like I want it to.
How can I eliminate the second drop down.

Thanks again for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

set the size column to be updatable from a select list, the use javascript to change the value of the size form element, an example of this would look like:

<form name="SoftDipesCart1_4_ATC_1" method="POST" action="/product.php"> 
<img src="images/thumbs/fishpopup.jpg" align="left" /><br />
Velcro Dipes<br clear="all" />
<input type="hidden" name="SoftDipesCart1_4_ID_Add" value="1" >
Price:
<select name="SoftDipesCart1_4_Price_Add" onChange="document.SoftDipesCart1_4_ATC_1.SoftDipesCart1_4_Size_Add.value = document.SoftDipesCart1_4_ATC_1.SoftDipesCart1_4_Price_Add[SoftDipesCart1_4_Price_Add.selectedIndex].text"><br clear="all" />
<option value="3.00" selected="selected">New Born</option>
<option value="3.50">Small</option>
<option value="4.00">Medium</option>
<option value="4.50">Large</option>
</select>
Name:
<input type="hidden" name="SoftDipesCart1_4_Size_Add" value="New Born">

<br />
<input type="text" name="SoftDipesCart1_4_Quantity_Add" value="1" size="4" />
<input type="image" src="WA_eCart/Images/Pacifica/Btn5_EN_addtocart.gif" border="0" class="eC_ImageButton" value="Add to Cart" name="SoftDipesCart1_4_ATC">
</form>
Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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...