• Resolved kearstinkrehbiel

    (@kearstinkrehbiel)


    Hi there,
    Thanks for making this great and free plugin!

    I’ve got 2 Contact 7 Forms (“Request a Quote” and “Ask a Question”. I’d like to add a Mailchimp choice list to those forms (“New York” or “San Francisco”).

    I read the articles in the Knowledgebase about adding choice lists to mc4wp Contact or Registration forms. I also read the article on connecting Contact 7 to mc4wp.

    It seems like it should be possible, but I wanted to check before I start experimenting with my functions.php…

    Thanks!

    https://wordpress.org/plugins/mailchimp-for-wp/

Viewing 5 replies - 1 through 5 (of 5 total)
  • mother.of.code

    (@imazed)

    The Mother of Code

    Hi kearstinkrehbiel,

    Ah thank you for your kind words! It’s always nice to hear when the work we put in is appreciated 🙂

    As for your question: is there anything you have tried already? I’d love to see the code you’ve set up. I’ll also make sure to add another article to the documentation soon, so you (and anyone else who needs this answer) will have a reference.

    Let me know what you do (or don’t) have, and we’ll go from there!

    Thread Starter kearstinkrehbiel

    (@kearstinkrehbiel)

    Hi Ines,
    I haven’t tried anything yet, and I should warn you I’m pretty clueless about coding.

    My hunch is that I can alter the recommended function function myprefix_show_list_choice_in_comment_form() { to point at the contact 7 form, but maybe it’s a better plan to use the hidden fields with radio buttons?

    Thanks in advance for your advice!

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello kearstinkrehbiel,

    To add a list choice to your CF7 form, you would need to do the follow:

    1. Go to WP Admin > MailChimp for WP > Checkboxes and make sure all MailChimp lists are unchecked. This is to ensure people are not subscribed to any lists if they did not check the checkboxes you added (see later step)
    3. Add below the code for the list choice in your CF7 form.

    <h4>Choose the lists you wish to subscribe to..</h4>
    <p>
    	<label>
    		<input type="checkbox" name="_mc4wp_lists[]" value="ListIDgoeshere" />List 01
    	</label>
    	<label>
    		<input type="checkbox" name="_mc4wp_lists[]" value="ListIDgoeshere" />List 02
    	</label>
    	<label>
    		<input type="checkbox" name="_mc4wp_lists[]" value="ListIDgoeshere" />List 03
    	</label>
    	<!-- This tells MailChimp for WordPress to susbcribe this customer -->
    	<input type="hidden" name="mc4wp-subscribe" value="1" />
    </p>

    Please make sure the ListID is added properly. Let me know if that works.

    Thread Starter kearstinkrehbiel

    (@kearstinkrehbiel)

    Hi Harish,
    Thank you for your message. I input the code you sent in the form. The form is sent successfully, however I’m not seeing my test subscriber in my lists.

    I’ve got all the lists unchecked and the double-opt-in checked (though I wasn’t prompted to confirm my email).

    My form is at: http://www.shamelessphoto.com/contact-form/

    Thanks!

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello kearstinkrehbiel,

    I just tested your form and it worked. I got a email to confirm my email. Our email “support @ mc4wp . com” should be added to your “New York” list.

    Since you have “Double Opt-in” enabled unless users confirm their email, the details won’t be added to your list. This email sent directly from MailChimp.com can sometimes take a while.

    From what I tested I can confirm the integration is working well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add mc4wp choice list to Contact 7 form?’ is closed to new replies.