jQuery(function($){ $("form.variations_form.cart").on('DOMSubtreeModified', function(){ if($(".single-product p.stock.available-on-backorder").length){ $("button.single_add_to_cart_button.button").hide(); console.log('added'); } else { $("button.single_add_to_cart_button.button").show(); console.log('removed'); } }); });

Showing 1–24 of 43 results