How to populate radio button option to "add to cart" button
Hello,
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.
(showthread.php?t=520&highlight=radio+buttons);
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)); ?>
</dl>
<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" >
</div>
</form>