• Resolved ashop1

    (@ashop1)


    Hello, I hope you can help me here:

    I need to change all the messages from woocommerce-message.

    where are they? I can’t really find them, what template it is.

    If you can’t tell me all of them because they are separated at least I need to know the following message that appears when making a registration in form-login:

    Your account was created successfully. Your access data has been sent to your email address.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Dani F. a11n

    (@danielinhou)

    Hi there ????,

    I need to change all the messages from woocommerce-message.

    What do you mean exactly by all the messages from woocommerce-message.

    WooCommerce comes localization-ready out of the box. Here you can find how to change WooCommerce strings and messages.

    As explained in the tutorial linked above you could use a plugin as LocoTranslate for that.

    I hope this points you in the right direction but please keep us posted if you need any further help!

    Cheers

    Hi @ashop1,

    Your account was created successfully. Your access data has been sent to your email address.

    You can change the text temporarily in the class-wc-form-handler.php file, but am afraid that the nearest WooCommerce update will override that.
    The solution might be an additional code snippet added via Code Snippets plugin, as suggested here: https://pluginrepublic.com/documentation/remove-woocommerce-notice-when-user-registers-new-account/

    <?php
    /**
     * Change WooCommerce notice when user registers new account
     */
    function wcmo_remove_new_registration_notice( $notice_message ) {
     if( strpos( $notice_message, 'Your account was created successfully' ) !== false ) {
     return 'YOUR NEW MESSAGE SHALL BE HERE';
     }
     return $notice_message;
    }
    add_filter( 'woocommerce_add_success', 'wcmo_remove_new_registration_notice', 99, 1 );

    Hope that helps.

    Thread Starter ashop1

    (@ashop1)

    great maksimurasov, that kind of answer I expected and it is very valuable to me. thank you very much. I close it for the moment. have a good day

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘woocommerce-message’ is closed to new replies.