Hello,
In OpenCart version 3.0.2.0 I was trying to disable the product image popup, since the main image container is large enough so no zooming or enlarging is needed. I came across an advice to rename the folder "magnific" located in catalog/view/javascript/jquery/magnific, which does the trick on desktops but I still see the image popup on mobile devices (lightbox image preview or even image in new tab on some phones).
Can anyone please advice how to disable this feature for mobile devices? I don't need any function when user clicks on product image (except switching the additional product images in the main image container).
Thanks!
Hi,
You can set condition in product.twig file based on device. You can get width of screen using javascript and add if else in the below script on product.twig file.
Thanks
You can set condition in product.twig file based on device. You can get width of screen using javascript and add if else in the below script on product.twig file.
Thanks
Code: Select all
$(document).ready(function() {
$('.thumbnails').magnificPopup({
type:'image',
delegate: 'a',
gallery: {
enabled: true
}
});
});
Who is online
Users browsing this forum: mattltm, Semrush [Bot] and 330 guests