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

Item by Color

Thread began 5/21/2009 12:04 pm by jenbar3378469 | Last modified 5/21/2009 2:30 pm by jenbar3378469 | 1924 views | 7 replies


Item by Color

Hi, I am trying to put a drop down menu underneath a golf umbrella by color so that when user selects color it auto populates the shopping cart. This is what technical support told me to do:
This will start out by creating a recordset on your product detail page. This recordset should be filtered on the product id so that only that product's info is displayed on the page.

You can add in additional recordsets to select the sizes and colors for that item as well. Once you have all of these recordsets on the page you would then add in the select lists to your add to cart form and set them dynamically to be populated from the recordsets.

The final step in this process would be to alter your cart object to ensure that it has columns for these values, once you have done that you only need to update your add to cart server behavior so that it binds the newly created select lists to their corresponding cart columns.

This is just a high level overview of the process, please post back with any specific questions that you have about any part of this and we will be glad to help you get this worked out.

I have done this. I created a separate MySQL table named "Golf" and then added recordsets by color. Here is what my code for this "Add to Cart" button looks like:

<form name="sumidrive1_15_ATC_<?php echo $row_rsGolfUmbrella["golfId"]; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">
<input type="hidden" name="sumidrive1_15_ID_Add" value="<?php echo $row_rsGolfUmbrella["golfId"]; ?>" >
<input name="sumidrive1_15_Quantity_Add" type="text" class="qtyformelem" value="1" size="4" >
<select name="sumidrive1_15_Color_Add">
<option value="<?php echo $row_rsGolfBlk["golfColor"]; ?>" selected="selected">Black</option>
<option value="<?php echo $row_rsGolfNavy["golfColor"]; ?>">Navy</option>
<input name="sumidrive1_15_ATC" type="image" class="cartbutton" value="Add to Cart" src="/assets/misc images/cart.gif" alt="Add to Cart" border="0">

Currently when I add to cart, nothing is being picked up. Please help! Maybe I am filtering my recordsets incorrectly. Thanks!

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