Search
Close this search box.
Search
Close this search box.

WooCommerce product archive – load more – and ajax functions

				
					<script>window.addEventListener('DOMContentLoaded', function() {
jQuery(document).ready(function () {

	jQuery(document).ajaxComplete(function (event, xhr, settings) {
		//debugger;
		if (typeof (settings.data) != "undefined") {
			if (settings.data.includes("action=jet_smart_filters") || settings.data.includes("action=jet_engine_ajax")) {
				jQuery.getScript('/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js', function() {
				});
			}
		}
	});
	
});

});</script>