For search engine : Image popup additional images product detail page template Storebox v3.8.2 to V3.9.1
I spent nearly two hours to find the problem after updating storebox template ! If you encounter the same issue, I am pleased to help you.
The changes appear in the product detail page, when you show your product image and additional images
1 - The first image was displayed twice
2 - The additional images in the detail product page would not pop up anymore. They do in fact, but you have to select them, then they appear at the place of the first main image and then, you click on it and get the popup. Too long and not able to navigate in the additonal images !
I decided to make the change in the index.php file located here : /gk_storebox/html/com_virtuemart/productdetails/index.php
Here are the changes I made to get back to what it was (and what it is on the demo site). Around line 119
- Code: Select all
for ($i = 0; $i < $count_images; $i++) {
$image = $this->product->images[$i];
?>
<div class="floatleft">
<?php
echo $image->displayMediaFull('class="product-image" style="cursor: pointer"',false,"");
Replaced 0 by 1 on the first line and replaced the entire last line
- Code: Select all
for ($i = 1; $i < $count_images; $i++) {
$image = $this->product->images[$i];
?>
<div class="floatleft">
<?php
echo $image->displayMediaFull("",true,"rel='vm-additional-images'");
Why gavick team changed thoses lines ? Can you tell please ?