Jump to content

next and previous image buttons on product page


Recommended Posts

I'd like to add next and previous buttons to the product image on product page, so that the user can look through all pictures with these buttons, exactly like when the image is opened to fancybox.


How can I get the next and previous images in javascript? Im thinking something of this sort


function nextImage(){
    document.getElementById('bigpic').src = next $image.id_image




  • Like 1
Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...