Magento 2 Add Anchor link to Success or Error Message.

You can add anchor tag link in success message, an error message or any notification message in Magento 2 by addSuccessMessage( ), addErrorMessage( ) and addNoticeMessage( ) respectively.

Let’s add a link to the Shopping cart of a product successfully added to the cart.

2 Replies to “Magento 2 Add Anchor link to Success or Error Message.”

    1. @amit_merchant:disqus Thanks for inform the deperecated function. I have updated the article.

Comments are closed.