Is there any way to show custom wc_add_notice() message when user clicks on a button which has an id associated to it? Some snippet code that I can use in my functions.php.
For instance, in orders section I have 'Cancel Order' button:
<a href="..." id="cancel-order" class="woocommerce-button button">Cancel Order</a>
I want to show woocommerce-info notification when user clicks on the button, like when user adds an item into cart and WooCommerce shows success notification message.