Skip to content

Commit

Permalink
Add alert to related products in product page if product is out of stock
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Feb 16, 2023
1 parent 15f84aa commit b2a822b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woocommerce/ajax-cart/ajax-add-to-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function bootscore_product_page_ajax_add_to_cart_js() {

});

$('a.ajax_add_to_cart:not(.outofstock a.ajax_add_to_cart)').on('click', function(e) {
$('a.ajax_add_to_cart').on('click', function(e) {

e.preventDefault();

Expand Down

0 comments on commit b2a822b

Please sign in to comment.