I've done some meddling with the script so that I can incorporate a javascript function to add some of the fields. The idea is that someone selects a number from several drop downs and it adds them all together into a total field. I've gotten it to work on the front end, however I think that some of the code that I change has messed something up.
I only modified the view-functions.php file. I change this line:
$option_markup .= "<option value=\"{$option->id}\" {$selected}>{$option->option}</option>\n";
to this:
$option_markup .= "<option value=\"{$option->option}\" {$selected}>{$option->option}</option>\n";
so that the value would be the same as the option name and could be added in the javascript function.
What is happening is that when someone chooses say "5" from a list of 1, 2, 3, 4, 5 it puts "4" into the database.
I'm not sure if this makes any sense, but if so, any help on this would be appreciated. It looks like all it is doing is entering the option before the selected option in the drop down list in the database.
