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


Need help on with option with price increment

Thread began 11/28/2010 3:27 am by rikaG_510 | Last modified 12/02/2010 5:05 pm by Dani Chankhour | 1174 views | 3 replies |


Need help on with option with price increment

Sorry, I forgot to fix the title, which is supposed to be;
Need help on options with price increment.

My sites are to sell bolts, for example,
6x70 rigger bolts $2.00
6x80 rigger bolts $2.50

I've managed to deploy options with radio button, but I don't know what I have to do next to apply the price increment to Add to cart button.
I saw some other posts talking about the same kind of topics, but everybodoy has different way of approaching, I still can not figure out.

I made database as below, with price increasment in Product Option table.

ProductPrice - Base price for products

OptionGroupID - Primary Key



Here is the code for one of my options;

<form style="display:inline" name="Swift_4_ATC_<?php echo $row_rigger4_50["ProductID"]; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">

<?php do { ?>
<dl class="option_radio">
<dt><input type="radio" name="Swift_4_Select_Add" value="<?php echo $row_rig50_option['OptionName']; ?>" /></dt>
<dd><?php echo $row_rig50_option['OptionName']; ?>&nbsp;&nbsp;$<?php echo $row_rig50_option['OptionPrice']; ?></dd>
<?php } while ($row_rig50_option = mysql_fetch_assoc($rig50_option)); ?>

<div class="prd_cart">
<input type="text" name="Swift_4_Quantity_Add" value="1" size="4" />
<input type="submit" class="eC_FormButton" value="Add to list" name="Swift_4_ATC">
<input type="hidden" name="Swift_4_ID_Add" value="<?php echo $row_rigger4_50["ProductID"]; ?>" />

I cannot write PHP code, so I need a big help.
What would be the next step?
The Add to cart button and checkout are working just fine.
I just need to figure out how to populate different price on each option.

Thank you,

Sign in to reply to this post

Dani Chankhour

Have you followed this tutorial:


this tutorial should help in getting started, as you can see the last part talks about adding a select list but you can ignore that since you already have radio buttons. But you should be able to get the price increment working following that tutorial.

Let me know if you have any other questions.

Sign in to reply to this post


Hi Dani,

Oh. I did not know this tutorial existed.
Is it new?

Anyway, thank you and I will try with this first.

Sign in to reply to this post

Dani Chankhour

It is not new, but it is not old.

I hope it helps.

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





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