Hi,
In that case, you should look instead at the code of the show_block_img:
$this->popup = hikashop_get('helper.popup');
$image_options = array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'));
$img = $this->image->getThumbnail(@$image->file_path, array('width' => $width, 'height' => $height), $image_options);
if($img->success) {
$attr = 'title="'.$this->escape(@$image->file_description).'"';
$html = '<img id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" title="'.$this->escape(@$image->file_description).'" alt="'.$this->escape(@$image->file_name).'" src="'.$img->url.'"/>';
echo $this->popup->image($html, $img->origin_url, null, $attr);
}
There, you could change the line:
echo $this->popup->image($html, $img->origin_url, null, $attr);
to something like this:
echo $this->popup->display($html, $product_name, $url_of_the_product_page, $unique_id, $width_of_popup, $height_of_popup);