-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.4.36
Hi,
A second issue on my local test site where I've updated Hikashop 2.3.3 to version 2.6.4 (2016-09-27).
The existing 2.3.3 override of view product/show_block_img.php works fine.
But after deleting this override and using the original 2.6.4 view show_block_image.php the product detail page is a mess.
The images show, but prices and button add to cart (hikashop_product_right_part) and product description (hikashop_product_description_main) have disappeared. And probably a closing div tag is missing which causes a distorted layout.
In a new override of the 2.6.4 version of show_block_img.php I deleted undermentioned code near line 80.
This idea arose because this code was lacking in the 2.3.3 version
if(empty($this->variant_name) && !empty($img->origin_url)) { ?>
<meta itemprop="image" content="<?php echo $img->origin_url; ?>"/>
<?php
}
This results in (just like in the 2.3.3 version):
The effect was a resurrection of the product detail page. All parts show again, the layout is fine..
So this microdata code might cause the problem.
The downside is that now the page is loading very slow. Perhaps a script is not completed after my hack?
Probably there is a better way to get the 2.6.4 version of show_block_img.php working.
Please advise.
Thanks,
Udo