please select some product options before adding this product to your cart. woocommerce code example
Example: customize please select some product options before wordpress message
jQuery(document).ready(function($){
$('.single_add_to_cart_button').click(function(e){
if ($('#pa_size').val() == "") {
e.preventDefault();
alert("Please select size");
return false;
}
});
});