Show woocommerce errors -


i have woocommerce store , want show wocommerce error messages in specific place of theme, example under submit button.

i know wocommerce error messages come here:

<ul class="woocommerce-error"> <?php foreach ( $messages $message ) : ?>     <li><?php echo wp_kses_post( $message ); ?></li> <?php endforeach; ?> </ul> 

but, when put code in page (for example edit-my-address.php page), giving error! working or simple code showing messages in woocommerce? in advance.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -