• Hi,

    First off great plugin thank you.

    I’m using the plugin to manually approve new customers from the woocommerce My Account registration page where I’ve added additional fields to the registration form example: billing_company, billing_address_1, and many others.

    Since my client requires these additional fields in the email that gets sent out I’ve had to modify the code to pull the data from the database to include it in the admin new user notification email.

    The problem I have is the email is being sent before the WC_save_registration_form_fields routine has completed therefore the data isn’t available.

    Do you have any suggestions on how the plugin can run the email routine after the WC_save_registration_form_fields has run?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I also have a similar use case wherein I have custom fields the user must fill out when registering for the site. These fields are simply First Name & Last Name, however they are not available in the $user object when Eonet sends the notification email.

    Plugin Author antonioeatgoat

    (@antonioeatgoat)

    Hello there,

    The only way that I can think is to remove the action from the current place, declared here: https://ibb.co/hYLGAQ

    Then you can add the action again on some different hook.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email to Admin is sending before woocommerce fields are saved’ is closed to new replies.