• Resolved jstneti

    (@jstneti)


    I’ve tried adding the checkbox to the Registration form of Ultimate Member plugin, like described here: https://mc4wp.com/kb/add-sign-checkbox-custom-form/, but checking the checkbox does not subscribe me.

    I’ve added the code in the register.php template like this:

    <form method="post" action="">
    <?php
    	do_action("um_before_form", $args);
    	do_action("um_before_{$mode}_fields", $args);
    	do_action("um_main_{$mode}_fields", $args);
    	do_action("um_after_form_fields", $args);
    
    	?><label>
    		<input type="checkbox" name="mc4wp-subscribe" value="1" />
    		Sign-up to our newsletter.
    	</label><?php
    	
    	do_action("um_after_{$mode}_fields", $args);
    	do_action("um_after_form", $args);
    ?>
    </form>

    Any idea why this is ot working?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jstneti

    (@jstneti)

    Now I’m doing something else and I just noticed that one of my new registered users was actually added to the MailChimp list. But the previous 10 and next 20 werent.
    This is the debug log:
    [2017-01-11 12:40:58] INFO: Custom > Successfully subscribed jdjg****@fd*****.com

    Thread Starter jstneti

    (@jstneti)

    And now I’ve found out when new customers are successfully subscribed. It only happens if the form has some error (password mismatch) and it reloads. After that, it actually subscribes.
    I guess it’s something to do with the Ultimate Member plugin.

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @jstneti,

    That seems like a strange issue. Can you please let me know if you have selected a list in the “Custom Integration”? Also, have you enabled “Double Opt-in”?

    Thread Starter jstneti

    (@jstneti)

    I have selected a list and disabled ‘Double Opt-in’.
    Since Ultimate Member had another missing feature I need, I’ve since moved to ACF Pro (with front end forms) and now it works like a charm.
    So I’m guessing there must be something with the way Ultimate Member handles form submissions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add checkbox to custom form not subscribing’ is closed to new replies.