There are notifications displayed by default.

Examples:

  • Your cart has been updated. (Basket)
  • You have put “Item” in your cart. (Item page)
  • Item removed. Cancel? (Product page, Archive).

How can I change these messages? In some replace the text output code.

I want to do this without display: none, without replacing strings.

Is it possible to replace it in the code, in the place where they are initially set?

  • You can fix the .po translation file using poedit, compile it into .mo and put it in the same folder languages. - KAGG Design
  • "Is it possible to replace it in the code, in the place where they are initially set?" They are set in the WooCommerce plugin, if you delete them there, then after updating WooCommerce they will come back. Therefore, either change as advised by KAGG, or remove / correct with hooks. Create a woocommerce folder in your theme and override them there if possible. It all depends on the task. - eugene_v pm
  • I'm asking about how to disable I know, but on which hooks to hang what message? I could not find anything on this occasion exactly. - GenryLettem

0