N
N
Nikita Ivanov2015-09-28 14:48:30
VirtueMart
Nikita Ivanov, 2015-09-28 14:48:30

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>

What needs to be added to fix the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question