Support » Plugin: Add-on Contact Form 7 - MailPoet 3 » Checked but not added to list

  • Resolved nenontwerp

    (@nenontwerp)


    Hi Kasper,

    In your class MailPoet_CF7_Submit_Form at line 64 (function add_email_list) my form data ($form_data) for mailpoetsignup is 0 (checked) or “” (not checked). Because of the ‘ && !empty($form_data[$field_names[‘mailpoetsignup’]]) ‘ in the up following if statement its not adding my signup to a list. Is it possible to change your if or is the class ‘WPCF7_Submission’ causing the problem?

    In my cf7 form:
    [mailpoetsignup mailpoetsignup-3005 list:5 default:on class:checkbox_nieuwsbrief "Stuur mij af en toe een nieuwsbrief via email"]

    Thanks for your help.
    Martin

    array(14) {
      ["_wpcf7"]=>
      string(3) "868"
      ["_wpcf7_version"]=>
      string(3) "4.9"
      ["_wpcf7_locale"]=>
      string(5) "nl_NL"
      ["_wpcf7_unit_tag"]=>
      string(16) "wpcf7-f868-p2-o1"
      ["_wpcf7_container_post"]=>
      string(1) "2"
      ["your-first-name"]=>
      string(4) "test"
      ["your-last-name"]=>
      string(4) "test"
      ["your-email"]=>
      string(18) "test@nenontwerp.nl"
      ["mailpoetsignup-3005"]=>
      string(1) "0"
      ["mailpoetsignup-3003"]=>
      string(1) "0"
      ["mailpoetsignup-3006"]=>
      string(1) "0"
      ["mailpoetsignup-3004"]=>
      string(1) "0"
      ["mailpoetsignup-3007"]=>
      string(0) ""
      ["mailpoetsignup-3008"]=>
      string(0) ""
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nenontwerp

    (@nenontwerp)

    Okay, I think I have to check for something else. It is signing up when I change you code but not adding me to any list. So the ‘0’ should be 1 to be added. I’m go to check my form. Thanks Martin

    Plugin Author tikwebtech

    (@ehsantikweb)

    Hi @nenontwerp,

    I don’t see any problem in our code.
    Did you press the button to generate a shortcode? If you do that then it shouldn’t happen any issue there. Let me know if the previous issue is not resolved.

    Thanks,
    Ehsan

    Thread Starter nenontwerp

    (@nenontwerp)

    This plugin is not working if you have multiple mailpoetsignup-checkboxes on one submit. I want my users to check the lists they like and not subscibe to multiple list with one checkbox.

    Martin

    Plugin Author tikwebtech

    (@ehsantikweb)

    Hi @nenontwerp,
    Multiple checkboxes issue has been fixed in the updated version 1.0.2, Please update the plugin and check it now.

    Thank You,
    Ehsan Ahmed

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checked but not added to list’ is closed to new replies.