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

Variations don’t work after AJAX filter on page

I can’t get the variations to change after I do an AJAX filter. Here is an example page…

https://faceundies.com/shop-all/

 

Hakik Zaman

Hi Johnny,

Thanks for reaching us.

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

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

And ask them to send triggers like the 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