Hi,
Thanks for the report.
I reproduced the issue and I made a fix.
In the file "administrator/components/com_hikashop/classes/filter.php" please replace
if(!empty($field->field_value)){
$field->field_value=explode("\n", $field->field_value);
$unset=array();
foreach($field->field_value as $key => $val){
$temp=explode("::", $val);
if(!empty($datas['products']) && !in_array($temp[0],$values)){
$unset[]=$key;
}else{
$field->field_value[$key]=array($temp[0],$temp[1]);
}
}
if(!empty($unset)){
foreach($unset as $u){
unset($field->field_value[$u]);
}
}
}
By
if(!empty($field->field_value)){
$field->field_value=explode("\n", $field->field_value);
$unset=array();
foreach($field->field_value as $key => $val){
$temp = explode("::", $val);
if(!empty($datas['products']) && !in_array($temp[0],$values)){
$unset[]=$key;
}else{
$field->field_value[$key]=array($temp[0],$temp[1]);
}
}
if(!empty($unset)){
foreach($unset as $u){
unset($field->field_value[$u]);
}
}
} else if($field->field_type == 'zone') {
$fieldClass = hikashop_get('class.field');
if(is_string($field->field_options))
$field->field_options = unserialize($field->field_options);
$fields = array($field);
$fieldClass->handleZone($fields, false, null);
$values = array();
foreach($field->field_value as $k => $obj) {
$values[] = array( $k, $obj->value );
}
$field->field_value = $values;
}
It will load the zone values for the custom field and display them.
I test it in my local websites and the filters are working good.
Regards,