I guess they could. It would require a number of tweaks, but here are the two most important to get you started.
Go back into your override version of the attributes.php module and find the folowing at about line 177
PHP Code:
// prepare product options details
$prod_id = $_GET['products_id'];
//die($prod_id);
Immediately afterwards add
PHP Code:
if ($_GET['checkboxes'] && $products_options_names->fields['products_options_type'] == 0 ) {
$products_options_names->fields['products_options_type'] = PRODUCTS_OPTIONS_TYPE_CHECKBOX;
}
Then find the following (now at about line 597)
PHP Code:
$options_name[] = '<label class="attribsSelect" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '">' . $products_options_names->fields['products_options_name'] . '</label>';
and extend it to
PHP Code:
$options_name[] = '<label class="attribsSelect" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '">' . $products_options_names->fields['products_options_name'] . '</label>' . '<a href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $_GET['cPath'] . '&products_id=' . $prod_id . '&checkboxes=1') . '">click to show as checkboxes</a>';
This will work but is most likely just a beginning. You would also want to style the link, the option titles (or at least this one to give it a line of its own) and the checkboxes. The link text should really be moved into a language file. And you may wish to restrict this visitor option to a particular products or even specific option by tweaking the first change, and make it persistent by recording use of the link in a session variable or cookie and using that in the first condition instead of using the $_GET parameter directly.
Bookmarks