WooCommerce Additional Fields Not Working
-
Hello,
I’m following the instructions on this page for syncing additional WooCommerce fields, and I can’t seem to get it to work.I’m trying to sync the Billing Phone number, which I assume is ‘billing_phone’ from the WooCommerce checkout page.
Here is the exact code I’m using:
add_filter( 'mc4wp_integration_woocommerce_data', function( $data ) { // Grab MailChimp field values from the current request $data['PHONE'] = sanitize_text_field( $_POST['billing_phone'] ); // Return the fields so the plugin knows to send them to MailChimp return $data; });
Where ‘PHONE’ corresponds to the merge field inside MailChimp:
I’ve also made sure to “refresh lists” from the mc4wp settings just in case. And yes, the WooCommerce integration is on and active.
What else could I be missing?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘WooCommerce Additional Fields Not Working’ is closed to new replies.