• Resolved iliyan

    (@iliyan)


    I have installed the latest version of Mailchimp for Woocomerce and Mailchimp for WordPress.
    Both are working fine and orders are synchronized BUT:

    For some reason after user registers from my register page: https://www.arbitrageguides.com/register/ not every time the first name is passed.

    https://prntscr.com/fdspu4

    All the registrations come from same register page but the source is different which I don’t know why. The source “API-Generic” is not making problems by passing the first name to MailChimp. Only the source “Arbitrage Guides | Trainingg” is making this problem.

    Here are my settings:
    https://prntscr.com/fdsqqk Mailchimp for Woocomerce
    https://prntscr.com/fdsrcz Mailchimp for Woocomerce
    https://prntscr.com/fdsr0q Mailchimp for WordPress

    Please give me a clue why
    1) first name is not syncing all the time when the source is “Arbitrage Guides | Trainingg”
    2) Why do I have two sources when the register page is only one…

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey there @iliyan,

    Thanks for posting and providing all these details. While we here in the Plugin Support Forums will only be able to speak to depth on the MailChimp for WooCommerce plugin specifically, and some of this investigating may require reaching out to MailChimp Support for their account-specific troubleshooting tools, I’d be glad to lend what insight I can.

    While the MailChimp For WooCommerce plugin does sync that ‘First Name’ information, it specifically syncs over the merge field “FNAME.” This means the First Name field in your list must be set to the merge value FNAME. You can check this in the MailChimp app by going to your List Settings for List fields and MERGE tags, then ensure that the merge tag for the First Name field is set exactly to “FNAME”

    If this is set properly, it’s possible there may be other factors at play within the MailChimp account that are updating the First Name value after it’s been synced to the list. This could be due to other API connected integrations, post-send actions of an Automation, or a variety of causes. I would recommend reaching out to MailChimp’s Support Team so they can help dig into the account to troubleshoot deeper on this specific case.

    Regarding signup source, when a store is connected to the account, MailChimp will show the Signup Source as your store name. Any other sources that are added from other integrations may use the default signup source of “API – Generic” that indicates they were added through an API-connected integration that did not specify the specific source when passing the information to your account.

    If you have any further questions, don’t hesitate to write back and let me know.

    – Malachite

    Thread Starter iliyan

    (@iliyan)

    Thank you for the great answer. I have checked and the settings were set correctly to FNAME https://prntscr.com/fdtczs

    I believe the Mailchimp for Woocommerce plugin is causing the issue because the name of the store is entered only in the Mailchimp for Woocomerce plugin. And only with source of the store name is making the problems. I used to have only Mailchimp for WordPress in the beginning and there weren’t any problems since I installed Mailchimp for Woocomerce.

    I will reach out to Mailchimp support team and will let you know their answer.

    Cheers

    Glad to help, @iliyan!

    Feel free to touch base if there’s anything else we can assist with further.

    – Malachite

    Thread Starter iliyan

    (@iliyan)

    Unfortunately, they told me that the both Plugins are conflicting each other.
    I don’t believe this is normal as they do different things.

    Mailchimo for WordPress is opting-in my users from the Buddypress register form and the Mailchimp for Woocomerce is updating information every time a user purchases.

    Could you tell me where in the code I can change it to stop the Mailchimp for Woocomerce syncing First and Last name?

    I was searching for this peace of code but it was hard for me to find it.

    One more screenshot of the problem since my last post: https://prntscr.com/fe40iw

    • This reply was modified 7 years, 9 months ago by iliyan.

    Hey @iliyan,

    I’m afraid that we cannot provide specific instructions for altering the MailChimp For WooCommerce’s plugin code in such a way that would prevent the First Name and Last Name fields from syncing, as this might cause other unexpected behavior that could hinder the functionality of the plugin.

    That being said, I did some testing and found a way to workaround MailChimp for WooCommerce being able to add First Name and Last Name fields. In your MailChimp list, you can go to Settings > List fields and MERGE tags > and change the Merge Tags for these fields to something other than FNAME and LNAME.

    When the plugin syncs new customers to MailChimp, it is specifically based on those fields. If those merge tags are instead set to something like *|FIRSTNAME*| and *|LASTNAME|*, then MailChimp For WooCommerce will not sync that new First Name and Last Name data because the fields do not match.

    All this being said, I would recommend running some tests to make sure this sort of workaround would work specifically with your workflow.

    If you have any additional questions, feel free to let me know.

    – Malachite

    Thread Starter iliyan

    (@iliyan)

    You are very kind and I really appreciate your time spent trying to help me.
    Your way won’t work because Mailchimp for WordPress is also using the FNAME tag.

    It would work if I wasn’t using Mailchimp for WP.

    Anyway, I believe I found where the problem is.

    In Mailchimp-for-woocomerce->includes->process->class-mailchimp-woocommerce-user-submit.php I have edited field 86

    From $fn = trim($user->first_name); to $fn = $user->display_name; https://prntscr.com/feyva5

    When you load up the user in line 47 with the code $user = new WP_User($this->user_id); the variable $user is now connected to wp_users table in my wordpress Database.

    In my WordPress Database in table wp_users I have listed only ID, user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_activation_key, user_status, display_name.

    As you can see there isn’t “first_name” anywhere, but there is display_name which actually is the first_name.

    From my tests so far it seems like it’s working but we will see. I will get back after few days when more users subscribe.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not syncing user first name’ is closed to new replies.