Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Disable Click On Product Image In Product Details Page Rate Topic   - - - - -

 
  • alaa
  • Senior Member
  • Members
  • Join Date: 18-Mar 18
  • 150 posts

Posted 20 February 2019 - 11:34 AM #1

Hello, 

 

How can I disable main product image previewer on image click but keep the zoom on hover? Also, I want that when the previewer is disabled, the photo shouldn't be hyperlinked/clickable? 

 

 

Thank you very much for your help! 



 
  • alaa
  • Senior Member
  • Members
  • Join Date: 18-Mar 18
  • 150 posts

Posted 25 February 2019 - 07:15 AM #2

I was able to make it work as I wanted above. I disabled click event on the product image. 

$('.cm-previewer').click(function() {
    return false;
});