close ad
 
Important WebAssist Announcement
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 rikaG_510 | 1248 views | 3 replies

rikaG_510

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.

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

[Products]
ProductID
ProductCategory
ProductName
ProductDescription
ProductPrice - Base price for products

[OptionsGroups]
OptionGroupID - Primary Key
OptionGroupName

[Options]
OptionID
Option_OptionGroupID
OptionName

[ProductOption]
ProductOptionID
ProductID
ProductOption_OptionGroupsID
ProductOptoin_OptionID
ProductOptoin_PriceIncrement

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>
</dl>
<?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"]; ?>" />
</div>
</form>

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,
Rika

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

Content

rating

Layout

rating

Ease of use

rating

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