Hi again and thanks for the help.
Unfortenately our site is pretty sensitive and my board is not comfortable with the idea of giving the admin access to you.
I’ve tried this for the city field:
// tie into the WooCommerce MailChimp 'ss_wc_mailchimp_subscribe_merge_tags' action filter to add the MailChimp merge tag for City
function ss_wc_send_city_field_to_mailchimp( $merge_tags, $order_id, $email ) {
// retrieve the birthday from the order meta/custom fields
$city = get_post_meta( $order_id, 'billing_city', true );
// Add 'BIRTHDAY' merge variable to MailChimp call (change 'BIRTHDAY' to whatever your merge variable is called in MailChimp)
$merge_tags['VILLE'] = $city;
return $merge_tags;
}
add_filter( 'ss_wc_mailchimp_subscribe_merge_tags' , 'ss_wc_send_city_field_to_mailchimp', 10 , 3 );
Unfortenately not working either. The good thing though is that it doesn’t block the subscriber addition any longer. I have the name, first name and email address populated which is the most important thing. Too bad I can’t add the country and city field as well.