Can’t get wordpress to send additional merge tags from woocommerce to mailchimp
-
Hi. I’m trying to add “City” to WooCommerce data to send over to MailChimp during every order. I’ve added this code to functions.php:
function custom_mailchimp_sync_user_mergetags($user, $merge_tags){
$billing_country = get_user_meta($user->ID, ‘billing_country’, true);
if( !empty($billing_country) ){
$merge_tags[‘CITY’] = $billing_country;
}
return $merge_tags;
}
add_filter( ‘mailchimp_sync_user_mergetags’, ‘custom_mailchimp_sync_user_mergetags’, 100, 2);(Which I took from here: https://github.com/mailchimp/mc-woocommerce/wiki/Custom-Merge-Tags )
Anyways, I’ve added custom merge tag in mailchimp as well: https://prnt.sc/20x82r7
But data just won’t appear in mailchimp. What have I missed? Thanks.
- The topic ‘Can’t get wordpress to send additional merge tags from woocommerce to mailchimp’ is closed to new replies.