logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$8
Integrate mailchimp form plus extars in my site

Hi,

Using Mailchimp.

I would like to create a form in mailchimp and embed it in my site.

This is the basic layout: http://womenofthewall.us1.list-manage.com/subscribe?u=1998ef3f0f337064ca67a8d7e&id=d944ed6130


1. I would like to embed this form inside a specific page in the site.
2. This form needs to be sent to 5 different mails in addition.
3. I would like to add an additional checkbox (yes/no) for subscribing to the newsletter list as well. (different list).

ALSO, create a thank you page.

:-)

Thanks,
Sharon

This question has been answered.

cloudnclear | 07/16/12 at 2:51am Edit

Previous versions of this question: 07/16/12 at 8:09am | 07/16/12 at 8:15am | 07/16/12 at 9:24am

The experts have suggested, on average, a prize of $32 for this question.

(7) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    07/16/12
    2:58am
    Agus Setiawan says:

    user checkbox
    [x] i agree / i signed etc

    • 07/16/12 2:59am

      Agus Setiawan says:

      i mean, use checkbox or radio button. means that user agree with terms and condition, etc

  • avatar
    Last edited:
    07/16/12
    2:58am
    Arnav Joy says:

    if you have mailchimp then please have a look in following url

    http://www.bigbossmas.com/wordpress/integrating-contact-form-7-to-mailchimp-the-better-way/

    • 07/16/12 3:02am

      Arnav Joy says:

      try this to get emails...

      <?php

      add_action( 'wpcf7_before_send_mail', 'get_cf7_email' );

      function get_cf7_email( $cf7 )
      {
      $email = $cf7->posted_data["your-email"]; // where your-email is the name of the field of email

      // do whatever you want to do with email field like store in db or print it.

      echo $email;
      }

      ?>

    • 07/16/12 5:02am

      cloudnclear says:

      Hello,
      I'm trying to follow the instructions in the link you've sent me:
      http://www.bigbossmas.com/wordpress/integrating-contact-form-7-to-mailchimp-the-better-way/

      But i cannot find the "MCAPI.class.php" file to upload into my theme folder

    • 07/16/12 5:11am

      Arnav Joy says:

      go to this path

      http://apidocs.mailchimp.com/api/downloads/#php

      and click on Check it out here download the folder and extract it then see.

    • 07/16/12 5:16am

      cloudnclear says:

      Ignore my question. I have found the file :-)

      One more thing, what is the code that you have posted here? where should I use it and what is the purpose?
      <?php



      add_action( 'wpcf7_before_send_mail', 'get_cf7_email' );



      function get_cf7_email( $cf7 )

      {

      $email = $cf7->posted_data["your-email"]; // where your-email is the name of the field of email



      // do whatever you want to do with email field like store in db or print it.



      echo $email;

      }



      ?>

    • 07/16/12 5:20am

      cloudnclear says:

      I followed all the instructions (besides your code) and I get this error message:
      function wpcf7_send_to_mailchimp($cfdata) { $formtitle = $cfdata->title; $formdata = $cfdata->posted_data; $send_this_email = $formdata['your-email']; $mergeVars = array( 'FNAME'=>$formdata['your-first-name'], 'LNAME'=> $formdata['your-last-name'], 'GROUPINGS'=>array( array('name'=>'Form Used', 'groups'=>$formtitle), )); // MCAPI.class.php needs to be in theme folder require_once('MCAPI.class.php'); // grab an API Key from http://admin.mailchimp.com/account/api/ $api = new MCAPI('9745e389574a0e61cb51179cb656806b-us1'); // grab your List's Unique Id by going to http://admin.mailchimp.com/lists/ // Click the "settings" link for the list - the Unique Id is at the bottom of that page. $list_id = "d944ed6130"; // Send the form content to MailChimp List without double opt-in $retval = $api->listSubscribe($list_id, $send_this_email, $mergeVars, 'html', false); } add_action('wpcf7_mail_sent', 'wpcf7_send_to_mailchimp', 1);
      Warning: Cannot modify header information - headers already sent by (output started at /nfs/c06/h05/mnt/92078/domains/kotelwomen.org/html/wp-content/themes/foundation/functions.php:366) in /nfs/c06/h05/mnt/92078/domains/kotelwomen.org/html/wp-admin/theme-editor.php on line 103

    • 07/16/12 5:21am

      Arnav Joy says:

      this code is to be pasted at functions.php of your file.

      it will give show you the email whenever contact form 7 is filled and email is about to send.

      so where i have written "echo $email;" , there you can use anything which you want to do with filled email using variable $email

    • 07/16/12 5:26am

      Arnav Joy says:

      have a look in this plugin

      http://wordpress.org/extend/plugins/contact-form-7-3rd-party-integration

    • 07/16/12 5:28am

      cloudnclear says:

      I see.
      But still, I have followed all your instructions, also copied the function you have sent me and I still get that error..

      http://womenofthewall.org.il/

    • 07/16/12 5:32am

      Arnav Joy says:

      remove all the code you pasted as you have pasted it wrongly , try to use the plugin.

    • 07/16/12 5:33am

      cloudnclear says:

      I get error while trying to activate the plug-in you have sent me.

      function wpcf7_send_to_mailchimp($cfdata) { $formtitle = $cfdata->title; $formdata = $cfdata->posted_data; $send_this_email = $formdata['your-email']; $mergeVars = array( 'FNAME'=>$formdata['your-first-name'], 'LNAME'=> $formdata['your-last-name'], 'GROUPINGS'=>array( array('name'=>'Form Used', 'groups'=>$formtitle), )); // MCAPI.class.php needs to be in theme folder require_once('MCAPI.class.php'); // grab an API Key from http://admin.mailchimp.com/account/api/ $api = new MCAPI('9745e389574a0e61cb51179cb656806b-us1'); // grab your List's Unique Id by going to http://admin.mailchimp.com/lists/ // Click the "settings" link for the list - the Unique Id is at the bottom of that page. $list_id = "d944ed6130"; // Send the form content to MailChimp List without double opt-in $retval = $api->listSubscribe($list_id, $send_this_email, $mergeVars, 'html', false); } add_action('wpcf7_mail_sent', 'wpcf7_send_to_mailchimp', 1);
      Warning: Cannot modify header information - headers already sent by (output started at /nfs/c06/h05/mnt/92078/domains/kotelwomen.org/html/wp-content/themes/foundation/functions.php:368) in /nfs/c06/h05/mnt/92078/domains/kotelwomen.org/html/wp-includes/pluggable.php on line 866

    • 07/16/12 5:33am

      Arnav Joy says:

      remove all the code you pasted as you have pasted it wrongly , try to use the plugin.

    • 07/16/12 5:53am

      cloudnclear says:

      Where do I configure the mailchimp API and unique id?
      I cannot see it in the plug-in settings.

      I still cannot understand what i did wrong in the first solution..

    • 07/16/12 5:57am

      Arnav Joy says:

      in the first method , you have pasted code incorrectly.

      this second method is more easy for you

      Go to new admin subpage "3rdparty Services" under the CF7 "Contact" menu and configure services + field mapping.

    • 07/16/12 6:11am

      cloudnclear says:

      I didn't paste the code incorrectly.
      I also tried to do it again without any luck.

      Can you tell me what was wrong?

      1. I have uploaded the "MCAPI.class.php" file to the theme folder.
      2. I have copy & paste the code (in this page, http://www.bigbossmas.com/wordpress/integrating-contact-form-7-to-mailchimp-the-better-way/) to my "functions.php".
      3. I have edited the API and the unique list.

      As for the 2nd solution, as mentioned, I cannot see under the plug-in settings mailchimp configuration.
      Please see attached.

      Attached Image

  • avatar
    Last edited:
    07/16/12
    3:06am
    Pali Madra says:

    I needed a clarification.

    You are using contact form 7 for creating the form. Has the form been integrated with mailchimp or not?

    If the form has been integrated with mailchimp then you will get the list of people who signed up by logging into your mailchimp account. If you need help in integrating contact form 7 with mail chimp please PM me and share the details and I will do it for you.

  • avatar
    Last edited:
    07/16/12
    6:22am
    sabby says:

    Hi,
    Why you are using the contact form 7,

    Make a custom form in mailchimp and use this plugins.

    http://wordpress.org/extend/plugins/mailchimp/

    • 07/16/12 10:08am

      sabby says:

      Hi,
      Dear give me login details of mail chimp or if you dont want to give then I will send you screenshot of each step.

      Mail me on sabirsoftware@gmail.com

  • avatar
    Last edited:
    07/16/12
    8:57pm
    Dbranes says:

    Why not use use an iframe?

    You can use an iframe to easily embed the mailchimp-form into your webpage

    <iframe src="http://womenofthewall.us1.list-manage.com/subscribe?u=1998ef3f0f337064ca67a8d7e&id=d944ed6130" 
    style="border:none;width:800px;height:500px"></iframe>


    You just have to adjust the height/weight


    You can set up emails to receive subscribe/unsubscribe notifications, more info here:

    http://kb.mailchimp.com/article/how-can-i-get-email-notifications-for-sign-ups-and-unsubscribes/

    You could also add a check box (on the Create Form page) to ask if the user wants to receive the newsletter

    Previous versions of this answer: 07/16/12 at 8:50pm | 07/16/12 at 8:53pm | 07/16/12 at 8:53pm | 07/16/12 at 8:57pm

    • 07/17/12 3:21am

      cloudnclear says:

      thanks.
      Do you have any idea how can I modify the content of the email notification alert? (how I get this notification).

    • 07/17/12 7:10am

      Dbranes says:


      It looks like the Mailchimp email notification template is not open for editing.

      ps: if you need to share the number of subscribers with your readers you can do so with a copy/paste javascript code:

      http://kb.mailchimp.com/article/do-you-have-a-list-size-counter/

  • avatar
    Last edited:
    07/17/12
    7:54am
    elidewellmari says:

    Tankinis - Tankini Tienda de la Mujer Trajes de baño en el lugar de baño

  • avatar
    Last edited:
    07/18/12
    5:38am
    lrchalkend says:

    Fell in love with dance the bride toast dress code wedding wed - $42.00 :

This question has expired.



cloudnclear voted on this question.



Current status of this question: Completed



Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.