How to display product added message in the basket page?

How can we display the basket updated message (i.e product added message) after clicking the buy button in the product listing pages and product detail page? because currently when we clicked the buy button it’s goes to the basket page and redirects back to which ever page I was in before.

What I want to do is:

  • I need to show the basket updated message in the basket page.
  • Need to stop redirecting after the product is added to the basket page.