-
Dear support,
I want to use DHVC forms for subscribing people to Mailchimp. I have done the following:
– Added the API key in settings
– Selected a list
– Set checkboxes as you can see in screenprint.
– Added a form to a page, selected “action type: default”, form action “Mailchimp” and method “Post”. I’m not saving the submitteddata to a database and am not using AJAX right now (not to complicate things).
– with three fields: email LNAME and FNAME, and of course a submit button. I’ve lowercased the field name “email” as per your suggestion elsewhere in this forum. (all fields are mandatory by my Mailchimp settings.As suggested by you elsewhere on this forum, I’ve included the following code in my theme’s functions.php:
function dhvc_form_mailchimp_merge_vars_custom($merge_vars,$data){ $merge_vars['FNAME'] = @$data['FNAME']; $merge_vars['LNAME'] = @$data['LNAME']; return $merge_vars; } add_filter('dhvc_form_mailchimp_merge_vars', 'dhvc_form_mailchimp_merge_vars_custom',10,2);
Please see screenshots for my settings.
I can’t get it to work. I keep getting the “Not subscribed error”. Do you have any suggestions? Thanks in advance for your support.
DHVC form and Mailchimp, can;t get it working
This topic is: resolved