The problem is in file show_block_img.php.
Now there is no file: show_block_img.php in folder: templates/gk_storefront/html/com_hikashop/product/ - works with default files from component.
The problem:
1. If I insert shadowbox on page, picture pop-up is opened, but you need to close 12 times! button X. Shadowbox code:
<link href="/shadowbox/shadowbox.css" rel="stylesheet" type="text/css" />
<script src="/shadowbox/shadowbox.js" type="text/javascript"></script>
2. If there is no shadowbox on page, pictures opened in the same window.
In file show_block_img.php of Hikashop is code:
<div id="hikashop_small_image_div<?php echo $variant_name;?>" class="hikashop_small_image_div">
<?php
if( !empty($this->element->images) && count($this->element->images) > 1) {
$firstThunb = true;
foreach($this->element->images as $image) {
if($this->image->override) {
echo $this->image->display($image->file_path, 'hikashop_main_image'.$variant_name, $image->file_name, 'class="hikashop_child_image"','', $width, $height);
continue;
}
if(empty($this->popup))
$this->popup = hikashop_get('helper.popup');
$img = $this->image->getThumbnail(@$image->file_path, array('width' => $width, 'height' => $height), $image_options);
if(empty($img->success))
continue;
$id = null;
$classname = 'hikashop_child_image';
if($firstThunb) {
$id = 'hikashop_first_thumbnail'.$variant_name;
$firstThunb = false;
$classname .= ' hikashop_child_image_active';
}
$attr = 'title="'.$this->escape(@$image->file_description).'" onmouseover="return window.localPage.changeImage(this, \'hikashop_main_image'.$variant_name.'\', \''.$img->url.'\', '.$img->width.', '.$img->height.', \''.str_replace("'","\'",@$image->file_description).'\', \''.str_replace("'","\'",@$image->file_name).'\');"';
$html = '<img class="'.$classname.'" title="'.$this->escape(@$image->file_description).'" alt="'.$this->escape(@$image->file_name).'" src="'.$img->url.'"/>';
if(empty($variant_name)) {
echo $this->popup->image($html, $img->origin_url, $id, $attr, array('gallery' => 'hikashop_main_image'));
} else {
echo $this->popup->image($html, $img->origin_url, $id, $attr, array('gallery' => 'hikashop_main_image_VARIANT_NAME'));
}
}
}
?>
</div>
And I can't edit a href of links to images. Please, say me how to activate modal/lightbox/shadowbox popup on this page? Where are generated a href links of variants pictures?
Link to product again:
mebeliyanev.com/%D0%BC%D0%B5%D0%B1%D0%B5...A-%D1%80%D0%B8%D0%BE