Hi,
Looking at the code of the HikaShop product search plugin, I see something which can be the cause of your trouble.
if($multi && !empty($lg)){
$query = ' SELECT * FROM '.hikashop_table($trans_table,false) . ' WHERE reference_table=\'hikashop_product\' AND language_id=\''.$lg.'\' AND published=1 AND reference_id IN ('.implode(',',array_keys($rows)).')';
$db->setQuery($query);
$trans = $db->loadObjectList();
foreach($trans as $item){
foreach($rows as $key => $row){
if($row->id==$item->reference_id){
if($item->reference_field=='product_name'){
$row->product_name=$item->value;
}elseif($item->reference_field=='product_description'){
$row->product_description=$item->value;
}else{
$row->product_name=$item->value;
}
break;
}
}
}
}
The last "else" in the check put the value in the product_name but it is not the reference field for the product name.
So it could be a good solution to :
- if the trouble comes from this last "else"
- know what could be the "reference_field" value
- comment the line which set the product_name
Regards,