Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add first/last name to customer-new-account email template #5724

Closed
baden03 opened this Issue · 1 comment

2 participants

@baden03

What would be the best method of adding billing_first_name and billing_last_name to the customer-new-account email template?

Modifying the WC_Email_Customer_New_Account class seems to not be the best idea.

It seems the template is called before there is an actual current user so WP's get_currentuserinfo function is returning empty. Also when the user_id is added to the above class get_currentuserinfo is empty... so it seems the user is not actually created and entered into the system until after the email function is triggered.

After two hours of goggling, trying code, creating an annoying number of new accounts to test the results, I am coming up empty. Any direction at this point is appreciated.

@claudiosmweb
Collaborator

This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core WooCommerce issues only. Support can take place in the appropriate channels:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.