Answer the question
In order to leave comments, you need to log in
How to add scrolling add. fancybox product images in VirtueMart 2?
On the product page there are additional pictures that can be scrolled in a modal window (fancybox). It was necessary to make it the same on the product category page. It turned out to display additional pictures, on click they open in a pop-up window, but you can’t scroll them, the arrows don’t appear.
Here is the code for displaying images in the category:
<div class="additional-images">
<?php
if (!empty($product->images) and count ($product->images)>1) {
foreach ($product->images as $image)
{
echo '<div class="floatleft">' . $image->displayMediaThumb('class="product-image"', true, 'class="modal"', true, true) . '</div>';
}
}
?>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question