View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

List values in relation to price variants . . .

Thread began 7/17/2009 9:17 pm by wetware | Last modified 7/20/2009 10:01 am by wetware | 3186 views | 14 replies


Results . . .

. . . with the following code:
•HTML head:
<script type="text/javascript">
/* <![CDATA[ */
function getlabelstring(){

document.eCart1_1_ATC_0<?php echo $row_rsdetail["ID"]; ?>.label.value = document.eCart1_1_ATC_0<?php echo $row_rsdetail["ID"]; ?>.listsize.options[document.eCart1_1_ATC_0<?php echo $row_rsdetail["ID"]; ?>.listsize.selectedIndex].text;

/* ]]> */
•HTML body:
<!--storing label string value in a hidden field in the Add to Cart form - this value is only updated onchange
<input type="hidden" name="label" value="Select Size" >
<!--list/menu is called listsize and calls a js function called getlabelstring
<select name="listsize" onchange="getlabelstring()">
<option selected="selected">Select Size</option>
<option value="20">Infant</option>
<option value="17">Child</option>
<option value="17">Youth</option>
•Add to Cart "Size" binding (default value):
<?php echo $_POST["eCart1_1_Size_Add"]; ?>
•Live Result:
The "Size" column is displayed correctly (Infant, Child, or Youth) but the "Price" column says "0" . . .
I'm thinking that a javascript term is used incorrectly?

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