It's probably an effect of the use of nested taxonomy terms there. In particular the function
taxonomy_allowed_values
/**
* Returns the set of valid terms for a taxonomy field.
*
* @param $field
* The field definition.
* @return
* The array of valid terms for this field, keyed by term id.
*/
function taxonomy_allowed_values($field) {
$options = array();
foreach ($field['settings']['allowed_values'] as $tree) {
if ($vocabulary = taxonomy_vocabulary_machine_name_load($tree['vocabulary'])) {
if ($terms = taxonomy_get_tree($vocabulary->vid, $tree['parent'])) {
foreach ($terms as $term) {
$options[$term->tid] = str_repeat('-', $term->depth) . $term->name;
}
}
}
}
return $options;
}
This part here:
$options[$term->tid] = str_repeat('-', $term->depth) . $term->name;
Adds a hyphen prefix to the term based on the term depth in the vocabulary.
It's called by taxonomy_options_list
You could actually add your own option_list
function by adding this to the term_reference field settings:
$field['settings']['options_list_callback'] = 'my_module_taxonomy_options_list';
Alternatively you may be able to form_alter
them out from display with
hook_form_commerce_add_to_cart_form_alter(&$form, &$form_state);