• Resolved kristinubute

    (@kristinubute)


    Hi

    I’m needing to edit the email that gets sent to the Customer when they Register as a new person.

    I can see the general email in Woocommerce/Emails where you can do edits.

    I have even copied the file to divi child also.

    The client wants their logo displayed in the email when they receive the email about a new Registration to the customer.

    I also checked out the plugin Email Customizer for Woocommerce, but the New Account email doesn’t show up in here.

    Does anyone know of a plugin possibly OR I can just add CODE into the file I copied to the Divi Child area, so I can add the client logo at the bottom of the email?

    Thanks in advance

    Kristin

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter kristinubute

    (@kristinubute)

    HI

    I’ve managed to figure it out.

    HOW can I edit on the Register Now/Login page,

    Username: (Change it to “Create a Username” instead

    Which template in backend do I copy into Child theme and copy and edit ?

    Thanks

    Kristin

    Thread Starter kristinubute

    (@kristinubute)

    I also need to know HOW to change the “REGISTER” title on the Registration page also to “Create an Account” sounds bit nicer than just “REGISTER”

    Thanks

    Kristin

    Stef

    (@serafinnyc)

    For that you need to do a lot of coding in your child theme. Are you comfortable with coding / adding code?

    Thread Starter kristinubute

    (@kristinubute)

    HI

    Yes I’m familiar in changing code in PHP. As long as I know which file to copy across into the Child theme, I should be able to change it.

    Thanks

    Stef

    (@serafinnyc)

    Awesome, great to hear.

    For template structure and where everything is you’d go here

    This assumes you have “Allow customers to create an account on my-account page” enabled.

    To only hook the titles on the page only you could use something like this

      add_filter('gettext', 'customize_woocommerce_titles', 20, 3);
     add_filter('ngettext', 'customize_woocommerce_titles', 20, 3);
    
    function customize_woocommerce_titles($translated_text, $text, $domain) {
        if ('woocommerce' === $domain) {
            switch ($translated_text) {
                case 'Login':
                    $translated_text = 'Your Custom Login Title'; // Change to your desired login title
                    break;
                case 'Register':
                    $translated_text = 'Your Custom Register Title'; // Change to your desired register title
                    break;
            }
        }
        return $translated_text;
    }
    

    Tested and works

    To customize the entire page you want to look for the form-login.php file and keep the path in your child theme as so

    woocommerce > my-account > form-login.php

    Copy that file over to your child theme and keep it exact to the path above here. Hope that helps.

    Thread Starter kristinubute

    (@kristinubute)

    HI

    Thanks for your reply. Yes I’m familiar with code and adding into Child Theme and functions.php for various other client sites.

    So I can add that code into the functions.php in Child Theme yes ?

    I am familiar with that.

    Otherwise you said I copy the original file , place it into child theme of woocommerce / myaccount/ form-login.php and edit in there.

    Do I have to do both OR one or the other ?

    Thanks

    Kristin

    Stef

    (@serafinnyc)

    So I can add that code into the functions.php in Child Theme yes ?

    Yes

    Otherwise you said I copy the original file , place it into child theme of woocommerce / myaccount/ form-login.php and edit in there.

    If you only want to change titles just the snippet. If you want to really go all out you can do both. But no need to move template files if just hooking the titles.

    Hope that helps

    Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @kristinubute,

    I’ve managed to figure it out.

    HOW can I edit on the Register Now/Login page,

    Username: (Change it to “Create a Username” instead

    I’m glad you figured out how to customize the email templates!

    Regarding your second query, the easiest way to translate or modify any string in WooCommerce is through the Say What? plugin, though.

    Using the Say What? plugin can assist if you only wish to translate or change a few words without editing a WordPress theme’s .PO file. Requires no custom code.

    When activated, it asks for:

    1. Original string?– text you are translating or modifying. View the plugin source code to see the exact string.
    2. Text domain?– (use “woocommerce” here)
    3. Text you want to display

    Of course, you can choose to modify the template through a child theme or through hooks if you prefer since I see you’re familiar with code! Please let us know if you need any help in this regard.

    I hope this helps so far!
    -OP

    Thread Starter kristinubute

    (@kristinubute)

    HI,

    @serafinnyc – I’ve used your code in functions.php and worked perfectly !

    @omarfpg – I’ll check out that plugin also as I’m not familiar with that one!

    Thanks for your replies, very much appreciated.

    Stef

    (@serafinnyc)

    You’re welcome @kristinubute enjoy

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @kristinubute

    I’m glad to hear that the code shared @serafinnyc worked perfectly for you. That’s exactly what we like to hear!

    I will mark this thread as resolved. Should you have further inquiries, kindly create a new topic here.

    Meanwhile, if it isn’t too much to ask for – would you mind leaving us a review here?

    It only takes a couple of minutes but helps us tremendously. It would mean so much to us and would go a really long way.

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Easy way to edit the New Account Email to add logo in email’ is closed to new replies.