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

Swatches not working on infinita scroll product page on Astra theme

Test here https://kreet.co.za/shop/
Items that are loaded dynamically have broken swatch selectors.

Hakik Zaman

Hi Frederick,

Thanks for reaching us.

We need an event from your infinite scroll plugin/theme that should be triggered after new posts are loaded.

Just send this plugin to your plugin/theme 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