• Resolved drtonyb

    (@drtonyb)


    I have added a custom field to the woocommerce registration form for birthday (dd/mm).

    I’ve added a birthday field to the mailchimp list.

    Is there a way to get that field into the connected mailchimp list?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter drtonyb

    (@drtonyb)

    Having a closer look at this, I have concluded that it is not currently possible. The only fields added to the mailchimp list are first_name and last_name.

    However, the simple addition of a filter for the $merge_vars on line 114 of the class MailChimp_WooCommerce_User_Submit in file includes\processes\class-mailchimp-woocommerce-user-submit.php would allow developers to easily add extra custom fields to the mailchimp list captured in the registration process.

    For example:
    $merge_vars = apply_filters( ‘mailchimp_woocommerce_merge_vars’, $user, $merge_vars );

    Please consider adding such a filter. I believe it would greatly enhance this useful plugin.

    • This reply was modified 6 years, 4 months ago by drtonyb.
    Thread Starter drtonyb

    (@drtonyb)

    Actually,

    $merge_vars = apply_filters( ‘mailchimp_woocommerce_merge_vars’, $merge_vars, $user );

    would be a better order for the filter arguments.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Capture custom field from woocommerce registration’ is closed to new replies.