Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @diegogomez,

    Can you please go to the “MC4WP > Others” menu and share with us any errors listed there?

    Thread Starter diegogomez

    (@diegogomez)

    Hello, these are the last lines of the error log, I don’t see anything recent:

    [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

    (@hchouhan)

    Hey @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

    (@diegogomez)

    Hi Harish, thanks for your help!

    This is the snipet that I have active:

    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

    Plugin Contributor Lap

    (@lapzor)

    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

    (@diegogomez)

    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

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @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

    (@diegogomez)

    Hi @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

    However, remember that what I am trying to synchronize is the checkout registration data, not the newsletter form.

    Plugin Contributor Lap

    (@lapzor)

    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

    (@diegogomez)

    Hi @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

    (@lapzor)

    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

    (@diegogomez)

    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

    Plugin Contributor Lap

    (@lapzor)

    Please send a link to this thread to support at mc4wp.com
    Thanks

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.