How can I make a dropdown for a specific filtergroup id only? I need the other filtergroups to stay like the default list.
On template/module/filter.tpl
I have added
<select id="select-filter-group<?php echo $filter_group['filter_group_id']; ?>">
<option value=""><?php echo $text_select; ?></option>
<?php foreach ($filter_group['filter'] as $filter) { ?>
<?php if (in_array($filter['filter_id'], $filter_category)) { ?>
<option value="<?php echo $filter['filter_id']; ?>" selected="selected"><?php echo $filter['name']; ?></option>
<?php } else { ?>
<option value="<?php echo $filter['filter_id']; ?>"><?php echo $filter['name']; ?></option>
<?php } ?>
<?php } ?>
</select>
This works but makes every filtergroup into a dropdown, I just need Filter Group ID 4 (exmaple) to be a dropdown and the other stays as before.
How can this be done?
OpenCart 1.5.6