Skip to content

Commit

Permalink
Remove error alert when offcanvas closes
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Feb 16, 2023
1 parent 3872704 commit eccb9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woocommerce/ajax-cart/ajax-add-to-cart.php
Expand Up @@ -164,7 +164,7 @@ function bootscore_product_page_ajax_add_to_cart_js() {

// Hide alert in offcanvas-cart when offcanvas is closed
$('#offcanvas-cart').on('hidden.bs.offcanvas', function() {
$('#offcanvas-cart .woocommerce-message').remove();
$('#offcanvas-cart .woocommerce-message, #offcanvas-cart .woocommerce-error').remove();
});

// Refresh ajax mini-cart on browser back button
Expand Down

0 comments on commit eccb9af

Please sign in to comment.