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

Variations swatches not active with Visual Filter by using crockblock & elementor

Hany Khodair

Hi,

Variations swatches after using a filter not working when hovering at products on the shop pages.
but it working fine without select any filter.

Thanks in Advance

Tanvirul Haque

Hi Hany,

Thanks for reaching us.

We need an event from your filter plugin should be triggered after new posts are loaded.

Just send this plugin to your plugin developer: https://wordpress.org/plugins/malinky-ajax-pagination/

And ask them to send trigger like following as the Malinky Ajax Pagination plugin provides.
document.addEventListener(‘malinkyLoadPostsComplete’, function(e) {
console.log(‘LoadPostsComplete’);
});

Like this filter plugin: https://woocommerce.com/products/product-filters/
jQuery(document).ready(function( $ ){
// Your code in here
jQuery(window).on(‘wcpf_update_products’, function () {
console.log(‘Hi’);
});
});

Thank You

Tanvirul Haque

Have you contacted with Jet Smart Filter plugin support team? They will provide you some JS code something like this:

jQuery(document).ready(function( $ ){
jQuery(window).on(‘wcpf_update_products’, function () {
console.log(‘Hi’);
});
});

Thanks