Thanks for following up. I fixed the issue myself by making some code changes in the plugin. Specifcally, i had to change the first_name and last_name to first-name and last-name in the mailchimp block because you guys are passing back first-name and last-name as the field names back to the class. specifcally the code below had to be changed.
this is what your call looked like
first-name=test&last-name=test&email=test%40gmail.com&list_ids=11111111111
Changed code:
if ( isset( $data[ 'first-name' ] ) ) {
$merge_vars[ 'merge_fields' ][ 'FNAME' ] = $data[ 'first-name' ];
}
if ( isset( $data[ 'last-name' ] ) ) {
$merge_vars[ 'merge_fields' ][ 'LNAME' ] = $data[ 'last-name' ];
}
i also had to unset the interests field because mailchimp does not take any blank fields that are not listed as fields on the mailchimp side and since there are no “interest” fields to populate in the getwid block, it had to be unset
if ( empty( $merge_vars[ 'interests' ] ) ) {
unset( $merge_vars[ 'interests' ] );
}
It would be awesome to have these changes in your next update
-
This reply was modified 5 years, 1 month ago by sodeypunk.
-
This reply was modified 5 years, 1 month ago by sodeypunk.