
Originally Posted by
Boggled
I'll try that and see if they end up in the right categories.
I had seen the post about removing the table, but we have variations on almost all of our products (Size), so I can't remove them all.
I've been looking for a way to hide just the read only attributes since we don't use those for anything else, but so far no luck.
Havent tested this but this should work:
line 181 remove this
Code:
or $products_options->RecordCount() == 1 or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY
so that RADIO is the last work inside the parentheses
like this:
Code:
if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_CHECKBOX or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_RADIO) {
line 486 - 492 may not need removing but to be sure remove or comment those lines out.
They are:
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'];
$tmp_html .= $products_options_details . '<br />';
} else {
$zv_display_select_option ++;
}
line 552-558 is the other mention of readonly - this may need removing as well but it also may upset the entire apple cart if you do.
I'm hoping that the first change will simply take the read only out of the equation completely.
Let me know the results - error code etc if you run into problems. I don't have a site to test it with right now.
Bookmarks