-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.14
Hi,
is there an option to hide default barcode thumbnail on product page if some image doesn't exist? I use 6 images for every product in CSV, but actually there can be less of them (3,4,5). The only decision which i found is to comment this line "$image_options = array('default' => true);" in show_block_img.php - missing images are not shown as default images, but I don't know if it's correct to do that.
Thank you.
if(empty($this->popup))
$this->popup = hikashop_get('helper.popup');
//$image_options = array('default' => true);
$img = $this->image->getThumbnail(@$image->file_path, array('width' => $width, 'height' => $height), $image_options);
if($img->success) {
$attr = '';
if (!empty ($this->element->images) && count($this->element->images) > 1) {
$attr = 'onclick="return window.localPage.openImage(\'hikashop_main_image\');"';
}
$html = '<img id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" title="" src="'.$img->url.'"/>';
echo $this->popup->image($html, $img->origin_url, null, $attr);
}