Support » Plugin: Email Verification for WooCommerce » E-mail customization

  • Resolved alphax

    (@alphax)


    Hi,

    The plugin could be what I’m looking for, but I’m currently struggling with the customization.

    The ‘New Account’ E-Mail from WooCommerce allows customization via file ‘customer-new-account.php’ that should be copied into child theme.

    I believe your plugin hooks onto the PHP code in the WC e-mail. However, where can I as a developer amend the hooked code?

    For example, I’d like amend the text, color, and change the very long text-link into a button.

    Thank you very much.

    Kind regards,
    AlphaX

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Factory

    (@wpcodefactory)

    Hello @alphax ,

    If you simply want to change the email style you could simply try to customize the colors the way you want by accessing:
    – WooCommerce > Settings > Emails

    If that’s not enough and if you are comfortable with coding you could try to use the woocommerce_email_styles hook, like:

     
    add_filter( 'woocommerce_email_styles', function( $css, $email ) { 
       $css .= '
          .my-button { background-color: red }
       ';
       return $css;
    }, 10, 2 );
    

    And then you would be able to use the custom my-button css on the email content by accessing:
    – WooCommerce > Settings > Email Verification > Emails > Email Content

    And then adding the custom css class on the verify button, like:
    <a class="my-button" href="%verification_url%">Verify Account</a>

    Let me know if it helps 😉

    • This reply was modified 1 month, 1 week ago by WP Factory.

    Got it! Thanks a lot!

    I didn’t see the “E-Mail” link at the top at all.

    Plugin Author WP Factory

    (@wpcodefactory)

    Anytime 🙂

    I’ll close the ticket then.
    If you notice anything else let me know 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.