close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Radio Button options instead of select

Thread began 5/23/2011 5:01 am by lee283140 | Last modified 5/23/2011 1:33 pm by Jason Byrnes | 1552 views | 5 replies |

lee283140

Radio Button options instead of select

Hi,

Is it possible to have radio options on the product detail page instead of select elements.
Ive tried changing them and modifying the relevant code so the radio buttons are within the loop where the options of the select element use to be but when i test it, it doesn't update the price etc like theres a problem with it referencing the options.

Could anyone post the correct code

any help would be great.

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

No, radio buttons are not supported in power store for product options.

Sign in to reply to this post

lee283140

Radio Buttons

Can this not be acheived by modifying the add_to_cart.php page. for example;



<?php do { ?>

<input type="radio" name="ProductOptions_<?php echo($row_ProductOptions['OptionGroupID']); ?>" id="ProductOptions_<?php echo($row_ProductOptions['OptionGroupID']); ?>" value="<?php echo $row_OptionValues['OptionID']?>" <?php echo((strpos($row_GroupedOptions['ProductOptions'].",",$row_ProductOptions['OptionGroupName'].": ".$row_OptionValues['OptionName'].",")!==false)?"checked":""); ?> onChange="updateProduct(<?php echo $row_WADAProducts["ProductID"]; ?>,<?php echo($row_GroupingRS["GroupingID"]); ?>,'<?php echo($UsePath); ?>','<?php echo($WAGLOBAL_Images_Folder); ?>')"> <?php echo $row_OptionValues['OptionName']?><br />

<?php
} while ($row_OptionValues = mysql_fetch_assoc($OptionValues));
$rows = mysql_num_rows($OptionValues);
if($rows > 0) {
mysql_data_seek($OptionValues, 0);
$row_OptionValues = mysql_fetch_assoc($OptionValues);
}
?>

Sign in to reply to this post

Jason ByrnesWebAssist

yes, it _can_ be done by modifying the code. however, it is not a supported feature, meaning that if you are having trouble implementing it, we will not be able to offer much help.

Sign in to reply to this post

lee283140

radio buttons

k thanks i understand.

Can you at least point me in the right direction on the code i need to implement.

ive tried the code in the previous post but it fails to update the price etc on change.

Sign in to reply to this post

Jason ByrnesWebAssist

I haven't actually tried doing this, so i cant say what the code should be. if it is not updating the price, I would guess that there is a javascript error occurring, you should use Fire Fox / Fire Bug to track down the javascript error.

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

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