• Resolved welime

    (@welime)


    The user/email gets passed to Mailchimp but not the grouping. I believe I have everything set correctly.

    Is there any reason you can think of why it wouldn’t pass?

    The page I need help with: [log in to see the link]

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

    (@hchouhan)

    Hello,

    Thanks for reaching out to us.

    Is this form created using 3rd party plugin? If yes, can you please let us know how you have integrated it with our plugin?

    Thread Starter welime

    (@welime)

    This form is the default registration form controlled by my theme plugin. I used the following int he functions file.

    /**
    * This snippet adds the HTML for a MailChimp interest grouping to registration form.
    */
    function hb_show_list_choice_in_registration() { ?>

    <h4>Choose the topic of your interest</h4>
    <p>
    <label>
    <input name=”MC4WP-INTERESTS[9879ca67d3][]” type=”checkbox” value=”c747b16242″> <span>Theme</span>
    </label>
    <label>
    <input name=”MC4WP-INTERESTS[9879ca67d3][]” type=”checkbox” value=”6333f0a49e”> <span>Plugin</span>
    </label>
    </p>

    <?php
    }
    add_action( ‘register_form’, ‘hb_show_list_choice_in_registration’ );

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    You will also need to add an additional checkbox or hidden field to let our plugin know that it needs to handle this. While I cannot guarantee it will work, the details of extra field can be found by enabling the “Custom” integration option at “MailChimp for WP > Integrations” menu in your WordPress admin.

    The fields you added is useful to let our plugin know which interest group to add the user to, however, you also need the other checkbox to first let our plugin know if it needs to add the user to your MailChimp list.

    Thread Starter welime

    (@welime)

    I got it working. I had to disable the registration form option and use the custom form add in only. Now it adds the user to mailchimp and passes the interst group as well. You can consider it resolved.

    Thread Starter welime

    (@welime)

    Only issue now is that it updates the first name in mailchimp to “1” i guess based on the value in the custom form add in. How can I get it to use at least the username

    Thread Starter welime

    (@welime)

    I guess I can use user sync to do that

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hi,

    When passing any field name from a custom form to MailChimp using our plugin, you can change the name of the field to something like “mc4wp-MMERGE1”, where the value of “MMERGE1” should match the field name in your MailChimp list.

    Thread Starter welime

    (@welime)

    Ahhhh, gracias!

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

The topic ‘Passing Interest groups’ is closed to new replies.