N
N
NOONE2014-02-19 15:43:17
CMS
NOONE, 2014-02-19 15:43:17

How to make a slideshow of open cart product photos?

Good afternoon, I need help, who can tell me how to make a ("slide show" based on product photos) in open cart
demo.myopencart.ru/index.php?route=product/product...
Here is a link to an example if you click on the photo product, photo navigation appears.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nowm, 2014-02-19
@Djam36

For each A tag that refers to an image and that should become part of the series, you need to specify the "colorbox" class. And during the initialization of Colorbox, you need to add a parameter that will connect them according to this class.

$(document).ready(function() {
  $('.colorbox').colorbox({
    overlayClose: true,
    opacity: 0.5,
    rel: "colorbox"
  });
});

Here, rel: "colorbox" just indicates that you need to series everything that has the class colorbox .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question