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

variation swatches doesn’t change variation image

Matej Gostisa

http://www.boom2.single-digital.com/trgovina/?sellkit_filters=1&products_cat=kompleti

variation swatches doesn’t change variation image if you click on a specific colour option if any filter is selected. Can you help me fix that

Golam Kibria

Hi Matej,

Thanks for reaching us.

We need an event from your filter plugin that 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