Home Forums WoodMart support forum woocommerce_checkout_process hook doesnt work properly Reply To: woocommerce_checkout_process hook doesnt work properly

#224455

ytrofr
Participant

I tried to add new custom checkout validation using this
add_action(‘woocommerce_checkout_process’, function(){
wc_add_notice( __( ‘Please enter something into this new shiny field.’ ), ‘error’ );
});

This little sniplet should throw out error when trying to place order, but it didn’t