Do you provide a hook for when products on the grid in the shop page have loaded, from pagination with infinate loading style?
For me this does not seem to work
jQuery(document).on(‘woodmart-ajax-content-reloaded’, function () {
console.log(‘Woodmart products reloaded via AJAX’);
});
Thanks it works perfectly. But it is not triggered when i filter products. Is there a hook to use for all product requests in shop or could you provide me for the hook when products are loaded from filters?
$(document).on('wdLoadMoreLoadProducts wdShopPageInit', function() {
console.log('Products loaded via infinite scroll');
// Initialize your scripts here
});