Drop Down menu for 'attributes' in advanced search

14.10.2013 09:53
#1
wditalia
Joomshopping forum user no avatar
Name: wditalia
18.11.2011
Posts: 15
Quote
Drop Down menu for 'attributes' in advanced search

Hello,

thankyou for this amazong compnent,

I have a question, how can I display the attributes as a drop down menu, instead opf 'checkboxes' in the advanced search?

I attach a screenshot,

Thankyou,

Andreas
Drop Down menu for 'attributes' in advanced search

 
14.10.2013 11:56
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16518
Quote
Aw: Drop Down menu for 'attributes' in advanced search

change template
components\com_jshopping\templates\default\search\characteristics.php

 
14.10.2013 12:07
#3
wditalia
Joomshopping forum user no avatar
Name: wditalia
18.11.2011
Posts: 15
Quote
Aw: Drop Down menu for 'attributes' in advanced search

Thankyou for the quick reply,

Please, what exactly do i have to change?

Here the code:

<?php
$characteristic_displayfields = $this->characteristic_displayfields;
$characteristic_fields = $this->characteristic_fields;
$characteristic_fieldvalues = $this->characteristic_fieldvalues;
$groupname = "";
?>
<?php print $this->tmp_ext_search_html_characteristic_start;?>
<?php if (is_array($characteristic_displayfields) && count($characteristic_displayfields)){?>
<div class="filter_characteristic">
<?php foreach($characteristic_displayfields as $ch_id){?>
<?php if ($characteristic_fields[$ch_id]->groupname!=$groupname){ $groupname = $characteristic_fields[$ch_id]->groupname;?>
<div class="characteristic_group"><?php print $groupname;?></div>
<?php }?>
<div class="characteristic_name"><?php print $characteristic_fields[$ch_id]->name;?></div>
<?php if ($characteristic_fields[$ch_id]->type==0){?>
<input type="hidden" name="extra_fields[<?php print $ch_id?>][]" value="0" />
<?php if (is_array($characteristic_fieldvalues[$ch_id])){?>
<?php foreach($characteristic_fieldvalues[$ch_id] as $val_id=>$val_name){?>
<div class="characteristic_val"><input type="checkbox" name="extra_fields[<?php print $ch_id?>][]" value="<?php print $val_id;?>" <?php if (is_array($extra_fields_active[$ch_id]) && in_array($val_id, $extra_fields_active[$ch_id])) print "checked";?> /> <?php print $val_name;?></div>
<?php }?>
<?php }?>
<?php }else{?>
<div class="characteristic_val"><input type="text" name="extra_fields[<?php print $ch_id?>]" class="inputbox" /></div>
<?php }?>
<?php }?>
</div>
<?php } ?>
<?php print $this->tmp_ext_search_html_characteristic_end;?>

 
Copyrights MAXXmarketing GmbH. All Rights Reserved