Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Adam Anderly

    (@anderly)

    Check your merge fields in MailChimp. The plugins assumes the MailChimp defaults of EMAIL, FNAME and LNAME. It appears you may have a merge field named MMERGE3 setup in MailChimp and it might be set as required.

    Hello, I have same problem.

    My MailChimp value is NOT FNAME and LNAME, but simply NAME. It is a text value and it is required. I treat as one value, not two.

    Is there a way to map this and make this plugin work? Can you alter what gets passed?

    My error is: “WooCommerce MailChimp subscription failed: MMERGE3 must be provided – Please enter a value (250)”

    My MailChimp account wants NAME to be passed as MMERGE3.

    thx

    Plugin Author Adam Anderly

    (@anderly)

    You can hook into the ss_wc_mailchimp_subscribe_merge_vars action filter to override the merge fields sent to MailChimp. See below.

    // tie into the WooCommerce MailChimp 'ss_wc_mailchimp_subscribe_merge_vars' action filter to modify the MailChimp merge vars
    function ss_wc_modify_mailchimp_merge_fields( $merge_vars, $order_id ) {
        // By default $merge_vars will look like array( 'FNAME' => 'Joe', 'LNAME' => 'Smith', 'EMAIL' => '[email protected]' );
    
        // let's add a new 'MMERGE3' merge field for 'NAME'
        $merge_vars['MMERGE3'] = $merge_vars['FNAME'] . ' ' . $merge_vars['LNAME'];
    
        // Now let's remove the 'FNAME' and 'LNAME' merge fields
        unset($merge_vars['FNAME']);
        unset($merge_vars['LNAME']);
    
        return $merge_vars;
    }
    add_filter( 'ss_wc_mailchimp_subscribe_merge_vars' , 'ss_wc_modify_mailchimp_merge_fields', 10 , 2 );

    What would it cost to have you implement this fix? Thanks!

    Plugin Author Adam Anderly

    (@anderly)

    Please let me know if you are still in need of this fix.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WooCommerce MailChimp subscription failed: MMERGE3’ is closed to new replies.