WooCommerce
Blocking Add to Cart with woocommerce_add_to_cart_validation
Returning false stops the product entering the cart, but it does not explain anything. The notice is a separate call, and the filter is skipped entirely when a quantity is changed on the cart page, which is the gap most validation snippets fall through.