Hello,
it is possible to display the checkbox only when is selected.
Currently, yes or no is displayed.
Because of that I have 3 big selection option, and it looks not good when all is only with no Displayed.
Here is the code from item_detail_fields.php.
<?php
$hide_empty = osc_get_preference('hide_empty', CA_PLUGIN_NAME);
foreach ($fields as $field) {
$type = $field['s_type'];
$label = $field['s_label'];
$value = Attributes::newInstance()->getValue($item_id, $field['pk_i_id']);
if (!empty($hide_empty) && 'hide' == $hide_empty) {
if ('checkbox' != $type && '' == trim($value)) {
continue;
}
}
if ($type == 'checkbox') {
if ($value == 'checked') $value = 'Yes';
else $value = 'No';
}
?>
Thanks and best regards Kurt