fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Swatchers don’t click after loading more products

Ilya Tsonev

Hello! My name is Ilya. I have a problem with loading more products on archive page. Swatchers don’t work after it. Can’t click on it.

Hakik Zaman

Hi Ilya,

Thanks for reaching us.

We need an event from your “load more” plugin should be triggered after new products are loaded.

Please contact the “load more” plugin author and ask for a trigger that fires after new product loads.

Hope to hear from you soon.

Thank You

Ilya Tsonev

How can i get this event? This from Loop Grid widget Elementor Pro

Hakik Zaman

Hi Ilya,

As far as I know Elementor Pro is not responsive regarding a trigger.

One of our previous customers has tried to communicate with them with no luck.

You can try the following snippet to reinitiate swatches script-

add_action('wp_footer', function(){
?>
<script id="wvs_trigger">
;(function($){
$(document).ajaxComplete(function() {
$(document).trigger('woo_variation_swatches_pro_init');
});
})(jQuery);
</script>
<?php
}, 99);

If the above snippet doesn’t help, you have to use the classic pagination with page reload.

Thank You