The constant is the:
PRODUCTS_OPTIONS_TYPE_READONLY
I forget off hand the code in 1.2.7 but it is similar ...
In the first location I change the code to:
PHP Code:
// Read Only - just for display purposes
if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
// $tmp_html .= '<input type="hidden" name ="id[' . $products_options_names->fields['products_options_id'] . ']"' . '" value="' . stripslashes($products_options->fields['products_options_values_name']) . ' SELECTED' . '" /> ' . $products_options->fields['products_options_values_name'];
if (empty($products_options_details)) {
$tmp_html = '';
} else {
$tmp_html .= $products_options_details . '<br />';
}
} else {
$zv_display_select_option ++;
}
In the next location I change the code:
PHP Code:
// READONLY
case ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY):
if (empty($tmp_html)) {
} else {
$options_name[] = $products_options_names->fields['products_options_name'];
$options_menu[] = $tmp_html . "\n";
$options_comment[] = $products_options_names->fields['products_options_comment'];
$options_comment_position[] = ($products_options_names->fields['products_options_comment_position'] == '1' ? '1' : '0');
}
break;