Awesome Zoom For Your JetWooBuilder Product Listings

Table of Contents

In this article, we will learn how to add a great zoom on the products listings from JetWooBuilder. That's what we will implement:

You might be wondering what is JetWooBuilder exactly?

JetWooBuilder is an add-on that offers a variety of elements to help you customize your ecommerce website. You get beautiful, customisable layout options for your single product and products listings templates.

It is a great fit for many WooCommerce website, mostly when combined with JetSmartFilters!

JetWooBuilder offers the following features:

  • Product categories grid or carousel
  • Products listings grid, carousel or list
  • Fully customizable single product layouts
  • A variety of user friendly elements that are easy to use, even for beginners.
  • Highly customisable with no coding requirements
  • Good customer support to sort your glitches.
  • Perfect integration with WooCommerce websites on Elementor.

You can give your website a JetWooBuilder upgrade and enjoy these features for as low as $19 per year.

To begin with, insert an HTML element

In the same page, post archive or product archive as your JetWooCommerce product grid element. It can be anywhere on the page.

Awesome Zoom For Your JetWooBuilder Product Listings 1

Then, copy paste the code below in the HTML element

.magnify { position: relative; cursor: none}
.large {
width: 100vw; height: 200vh;
position: absolute;
z-index: 1;
display: none;
.small { display: block; }
function MagnifierImg(){
var elementImages = document.querySelectorAll('.jet-woo-product-thumbnail');
var DIV = document.createElement("div");
elementImg.insertBefore(DIV, elementImg.firstChild);
var LrgImg = elementImg.querySelector('.large + a img');
var srcUrl = "url('" + LrgImg.src + "') no-repeat"; = srcUrl;
var native_width = 0;
var native_height = 0;
$(".magnify").bind('mousemove', function(e){
if(!native_width && !native_height)
var image_object = new Image();
image_object.src = $(this).find(".small").attr("src");
native_width = image_object.width;
native_height = image_object.height;
var magnify_offset = $(this).offset();
var mx = e.pageX - magnify_offset.left;
var my = e.pageY -;

if(mx < $(this).width() && my < $(this).height() && mx > 0 && my > 0)
var rx = Math.round(mx/$(".small").width()*native_width - $(".large").width()/2)*-1;
var ry = Math.round(my/$(".small").height()*native_height - $(".large").height()/2)*-1;
var bgp = rx + "px " + ry + "px";
var px = mx - $(".large").width()/2;
var py = my - $(".large").height()/2;
$(this).find(".large").css({left: px, top: py, backgroundPosition: bgp});
$(".magnify").bind(' mouseleave', function(e){
$(this).find(".large").css({ display: "none"});

document.addEventListener('DOMContentLoaded', function() {
var viewportWidth = window.innerWidth || document.documentElement.clientWidth;
if (viewportWidth < 1740) {
setInterval( function() {
if( !($('.jet-woo-product-thumbnail').hasClass('magnify')) ) {
}, 740);


Finally, enjoy your new Awesome new Product Grid Zoom!

Let me know if you need any help!

To see the comments, click 'accept all' in the Cookie settings (lower right sticky icon). Then refresh the page.

If you still don't see the comments, try using Chrome or Edge, as you probably you have an adblock or a browser such as Firefox or Brave.