skip to Main Content

Add functionality to ajax_add_to_cart button in woocommerce to close a custom modal after item was added to cart

Im trying to close a modal with javascript (doesnt matter if its with js or jquery or php), I've tried adding custom JS with a button pointer like this: <script type="text/javascript"> (function($){ $('.btn[data-product_id='11068651']').click( function(){ document.querySelector(".speak-up-modal").style.display = "none"; }); $('.btn[data-product_id='11068652']').click( function(){…

VIEW QUESTION
Back To Top
Search