Hi,
You can edit the file "product / show_default" in HikaShop > Display > Views and try to add the following code:
<?php
foreach($this->element->variants as $variant){
foreach($variant->characteristics as $k => $characteristic){
$char_id = $characteristic->variant_characteristic_id;
$cat_id = $k;
}
foreach($variant->images as $image){
echo '<img onClick="document.getElementById(\'hikashop_product_characteristic_'.$cat_id.'\').value = '.$char_id.'; document.getElementById(\'hikashop_product_characteristic_'.$cat_id.'\').focus();" style="height:100px;" src="' . $this->image->uploadFolder_url . $image->file_path . '" alt="' . $image->file_name . '" />';
}
}
echo '<input type="hidden" onFocus="return hikashopUpdateVariant(this);" id="hikashop_product_characteristic_'.$cat_id.'" value="">';
?>
It's an example, you can do it in another way.