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']; ?> $<?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