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

How to populate radio button option to "add to cart" button

Thread began 4/04/2010 10:12 am by rikaG_510 | Last modified 4/06/2010 7:17 pm by rikaG_510 | 2650 views | 3 replies


How to populate radio button option to "add to cart" button


I am building a shopping site with ecart (5.0.1) .
For options, some items have drop down list, which I managed to populate.
Now I'd like to add options with radio button as well. The layout is done already (see attachment.)

Radio buttons and option details are repeated with server behavior.
"add to cart" button is already added, but I can not figure out how to populate repetad option data to "add to cart" button.

So I looked for a solution in the forum, then I found one thread which might answer my question.

On the post on 04-09-2009, Ray suggests;

1) add a column to the cart to store it.
2) add the radio buttons to the add to cart button form
3) In the eCart add to cart server behavior set the column to be updated from that radio group by using the lightning bolt and bindings panel.

I have done 1) and 2) (for 1, I initially added one new colum for pull down menu option.)
But I can not find a way to do 3). It was simple and easy to do the same for pulldown menu option, but there is no options in bindings panel to choose radio group.
(also, do I need to "group" radio buttons in any ways??)

Could anyone give me a hint?

I copied my code for the form area including "add to cart" button.

Thank you in advance.

<form name="Swift_1_ATC_<?php echo $row_fin13_1S["ProductID"]; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">

<dl class="option_radio">
<?php do { ?>
<dt><input name="fin13_option" type="radio" value="<?php echo $row_fin13_1S_option['OptionName']; ?>" /></dt>
<dd><?php echo $row_fin13_1S_option['OptionName']; ?></dd>
<?php } while ($row_fin13_1S_option = mysql_fetch_assoc($fin13_1S_option)); ?>

<div align="right">
<input type="hidden" name="Swift_1_ID_Add" value="<?php echo $row_fin13_1S["ProductID"]; ?>" >
<input type="text" name="Swift_1_Quantity_Add" value="1" size="4" >
<input type="submit" class="eC_FormButton" value="Add to Cart" name="Swift_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...