Using AJAX to load more products WooCommerce
问题 I am using AJAX to load more products on a WooCommerce archive. I have used AJAX to "Load More" once before on this page. I have used the same code for the most part, just altered the WP_Query arguments to suit my needs. I can't understand why my code doesn't work. JS /** * AJAX Load (Lazy Load) events */ $('#load-more').click( function(e){ e.preventDefault(); ajax_next_posts() $('body').addClass('ajaxLoading'); }); var ajaxLock = false; // ajaxLock is just a flag to prevent double clicks and