Mailchimp for WP in Registration with woocommerce hook
-
Hi,
I have problem making MailChimp for WP work.
I am using a hook for the registration, because I have another custom field to integrate.
add_action( 'woocommerce_created_customer', 'wooc_save_register_notification' ); function wooc_save_register_notification() {...
I don’t handle anything inside the function regarding mailchimp. Should I?
I have tried with two different mailchimp integrations, custom and registration.
Here details:1) Custom (taken from Mailchimp for WP > Forms > Fields):
Inside functions.php:add_action( 'register_form', 'wooc_extra_register_fields' ); function wooc_extra_register_fields() { ?> <!p> <label> <input name="_mc4wp_action[]" type="checkbox" value="subscribe" checked> <span>Subscribe to our newsletter</span> </label> </p> <?php }
Plugin settings:
– Mailchimp is connected (green)
– Mailchimp list is displayed
– Mailchimp list -> checked
– “use double opt-in?” -> yes
– “update existing subscriber” -> yes
– “replace interest groups” -> yes2) Registration Form integration:
– enabled
– “implicit” -> no
– Mailchimp list -> checked
– other settings like aboveIn both cases I have the checkbox displayed in the registrations.
Strange is that the first method doesn’t give me any error when I look at the plugin’s error log.
The second method tell me “Registration Form > MailChimp API Error: LNAME must be provided – Please enter a value”As I said, nothing happens further in both cases.
(sorry I cannot give the link to the site, it is still in testing for client)
If anybody could give me some hints on what I am missing here.
Thanks for help.
Jerome
- The topic ‘Mailchimp for WP in Registration with woocommerce hook’ is closed to new replies.