Title: Mapping Extra Fields Form Checkout
Last modified: January 23, 2025

---

# Mapping Extra Fields Form Checkout

 *  Resolved [diegogomez](https://wordpress.org/support/users/diegogomez/)
 * (@diegogomez)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/)
 * I’m trying to get some fields from checkout form, like “_billing\_phone_” to 
   be sent to the Mailchimp audience.
 * I found a snippet that I tried, but it doesn’t work: [https://github.com/ibericode/mailchimp-for-wordpress/blob/main/sample-code-snippets/integrations/woocommerce/send-billing-fields.php](https://github.com/ibericode/mailchimp-for-wordpress/blob/main/sample-code-snippets/integrations/woocommerce/send-billing-fields.php)
 * If with your help I can make it work, then I would also like to merge other custom
   fields such as “_billing\_wooccm18_” which I also have already created in the
   mailchimp forms as “_|MERGE6|_“
   I appreciate your help.
    -  This topic was modified 1 year, 4 months ago by [diegogomez](https://wordpress.org/support/users/diegogomez/).

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18260092)
 * Hey [@diegogomez](https://wordpress.org/support/users/diegogomez/),
 * Can you please go to the “MC4WP > Others” menu and share with us any errors listed
   there?
 *  Thread Starter [diegogomez](https://wordpress.org/support/users/diegogomez/)
 * (@diegogomez)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18261336)
 * Hello, these are the last lines of the error log, I don’t see anything recent:
 *     ```wp-block-code
       [2024-12-25 11:15:25]ERROR:Form 5644 > Mailchimp API error: 400 Bad Request. Member Exists. bere********@gm***.com is already a list member. Use PUT to insert or update list members.Request:POST https://us6.api.mailchimp.com/3.0/lists/3d4ed7e5a3/members{"status":"subscribed","email_address":"bere********@gm***.com","interests":{},"merge_fields":{},"email_type":"html","ip_signup":"186.80.28.79","tags":[]}Response:400 Bad Request{"title":"Member Exists","status":400,"detail":"bere********@gm***.com is already a list member. Use PUT to insert or update list members.","instance":"077bbc9f-b909-2ca1-f751-084dc00b57c3"}[2024-12-25 11:15:32]WARNING:Form 5644 > bere********@gm***.com is already subscribed to the selected list(s)[2024-12-25 11:15:40]WARNING:Form 5644 > bere********@gm***.com is already subscribed to the selected list(s)[2024-12-25 11:16:13]WARNING:Form 5644 > bere********@gm***.com is already subscribed to the selected list(s)[2025-01-02 21:53:48]WARNING:Form 5644 > elor******@gm***.com is already subscribed to the selected list(s)[2025-01-02 23:21:41]WARNING:Form 5644 > elor******@gm***.com is already subscribed to the selected list(s)[2025-01-13 08:20:13]WARNING:Form 5644 > lili***************@ho*****.com is already subscribed to the selected list(s)[2025-01-13 08:20:16]WARNING:Form 5644 > lili***************@ho*****.com is already subscribed to the selected list(s)
       ```
   
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18261576)
 * Hey [@diegogomez](https://wordpress.org/support/users/diegogomez/),
 * Thank you for sharing that. No error there regarding the data submission of extra
   fields so all good.
   Can you please share the custom code you have added to your
   website to sync the additional fields?
 *  Thread Starter [diegogomez](https://wordpress.org/support/users/diegogomez/)
 * (@diegogomez)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18261618)
 * Hi Harish, thanks for your help!
   This is the snipet that I have active:
 *     ```wp-block-code
       add_filter('mc4wp_integration_woocommerce_data', function ($data, $order_id) {$order = wc_get_order($order_id);// this sends the billing_phone field from WooCommerce to a Mailchimp field called "PHONE".$data['PHONE'] = $order->get_meta('billing_phone', true);// this sends the billing_wooccm18 field from WooCommerce to a Mailchimp field called "NACIMIENTO".$data['NACIMIENTO'] = $order->get_meta('billing_wooccm18', true);return $data;}, 10, 2);
       ```
   
 * And this is how I have the tags in the Mailchimp audience: [https://ibb.co/C2Br8mf](https://ibb.co/C2Br8mf)
 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18262697)
 * Please go to MC4WP > Mailchimp, click “renew mailchimp audiences” this will let
   the plugin know about the latest changes to Mailchimp fields. Maybe that solves
   the issue already?
   If it doesn’t solve the problem, in that same screen after
   clicking renew Mailchimp audiences, click on the audience name to fold it open,
   there you can see the field names of the Mailchimp fields. Can you make a screenshot
   of those field names for me and share it here? Thanks!
 *  Thread Starter [diegogomez](https://wordpress.org/support/users/diegogomez/)
 * (@diegogomez)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18263409)
 * I had already applied the action of the “renew mailchimp audiences” button even
   more than 24 hours ago, but it does not seem to have any effect, the fields are
   still empty in my mailchimp audience list.
 * In the previous message, I had already sent the print of the field names of the
   Mailchimp fields, in the link: [https://ibb.co/C2Br8mf](https://ibb.co/C2Br8mf)
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18263420)
 * Hey [@diegogomez](https://wordpress.org/support/users/diegogomez/),
 * The code and the field names look correct. When testing are you doing it with
   your own email? Also, is the “Update existing subscribers?” set to “yes”?
 *  Thread Starter [diegogomez](https://wordpress.org/support/users/diegogomez/)
 * (@diegogomez)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18263459)
 * Hi [@hchouhan](https://wordpress.org/support/users/hchouhan/)
 * I have tried with my email and other different emails, none of them work.
 * In the “MC4WP > Form > Settings” options I have activated the “Update existing
   subscribers” option: [https://ibb.co/mNL9XVB](https://ibb.co/mNL9XVB)
 * However, remember that what I am trying to synchronize is the checkout registration
   data, not the newsletter form.
 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18264467)
 * Hi,
   Please check under MC4WP > Integrations > WooCommerce checkout if it’s set
   to Update existing subscribers there as well. As for the field names and types,
   I see you used a field of type Date and a field of type Phone in Mailchimp. Mailchimp
   can be very strict with field validation, and if the data is not sent in the 
   expected format it will decline the data. As a test you could make normal text
   fields in Mailchimp (and then click the renew mailchimp lists again) and send
   the data to normal text fields to see if that works and in what format the data
   is received?
 * Hope that helps.
 * Kind regards,
 *  Thread Starter [diegogomez](https://wordpress.org/support/users/diegogomez/)
 * (@diegogomez)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18268218)
 * Hi [@lapzor](https://wordpress.org/support/users/lapzor/), thank you,
 * Yes, I have the “**Update existing subscribers**” option activated
 * I just tested it with a simple text field, and then I also refreshed the Mailchimp
   list. I still don’t see the change in Mailchimp’s audience, however I understand
   that it may take a couple of hours for the process to complete, I will wait 24
   hours and write again with the result.
 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18268962)
 * As long as your first refresh the mailchimp audience and then test it, it should
   work immediately or else something is still misconfigured.
 *  Thread Starter [diegogomez](https://wordpress.org/support/users/diegogomez/)
 * (@diegogomez)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18270595)
 * We don’t know what could be happening, the audience continues to receive data
   from Woocommerce even in the last few minutes, but the fields “Phone number”,“
   Fecha de Nacimiento”, even “Cédula” which is a simple text field are not synchronized.
   
   you can see it in this image: [https://ibb.co/k97kC5p](https://ibb.co/k97kC5p)
 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18273781)
 * Please send a link to this thread to support at mc4wp.com 
   Thanks

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Mapping Extra Fields Form Checkout’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [mapping](https://wordpress.org/support/topic-tag/mapping/)
 * [Merge](https://wordpress.org/support/topic-tag/merge/)
 * [phone](https://wordpress.org/support/topic-tag/phone/)

 * 13 replies
 * 3 participants
 * Last reply from: [Lap](https://wordpress.org/support/users/lapzor/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/mapping-extra-fields-form-checkout/#post-18273781)
 * Status: resolved