Syncing with WooCommerce Memberships
-
I’m currently trying to send a contact’s WooCommerce Membership Level to a field/mergetag in MailChimp. I feel like this should be relatively easy since the membership level information is available on the WordPress user dashboard:

When trying to use the “Send Additional Fields” function within the Users Sync settings, no type of Woocommerce membership field tags get auto-populated.

Which led me to this code:
add_filter( 'mailchimp_sync_user_data', function( $data, $user ) { $data['WEBSITE'] = $user->user_url; return $data; }, 10, 2 );I have been able to map the fields correctly by replacing ‘WEBSITE’ with ‘LEVEL’ (as I have it setup in my MailChimp list), but when I replace
user_urlwithwoocommerce-membership(as it is stored on my website in WooCommerce), it send the number “0” instead of “White-Truth” as referenced in the first picture.
I’m sure I’m close, and I’m sure it’s simple, but I can’t seem to figure out how to pull the membership level from WooCommerce into your plugin and then send it off to MailChimp.
Any help would be greatly appreciated.
The topic ‘Syncing with WooCommerce Memberships’ is closed to new replies.