WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Checked by default?

[Resolved] Checked by default?

Viewing 8 replies - 1 through 8 (of 8 total)
  • infiniloop
    Member

    @infiniloop

    bump

    Plugin Contributor MailPoet
    Participant

    @wysija

    Hey, you can make work that with some jQuery code! What’s your website URL with the form added?!

    infiniloop
    Member

    @infiniloop

    http://seattlepokeropen.com/membership-account/membership-checkout/?level=n

    Where n is the membership level code corresponding to the membership they are purchasing through PMPro.

    Plugin Contributor MailPoet
    Participant

    @wysija

    Add this code to the bottom of your footer.php file inside your current WordPress theme’s folder (wp-content/themes/your-theme). Put it right before the closing body tag:

    <script>
    (function($){
    	$(document).ready(function(){
    
            $('#pmpro_user_subscribe_to_mailpoet').prop('checked', true);
    
    	});
    })(window.jQuery);
    </script>
    infiniloop
    Member

    @infiniloop

    Worked like a charm! You’re the best!!!

    Plugin Contributor MailPoet
    Participant

    @wysija

    We’re glad you liked it!

    infiniloop
    Member

    @infiniloop

    If only I could get as good of support from PMPro!

    infiniloop
    Member

    @infiniloop

    So the code that you gave me is causing an error now.

    If I have an existing user that has already subscribed to my newsletter attempt to UPGRADE their membership through the proper PMPro page, it results in this error message:

    Please complete all required fields.

    If I uncheck the “Sign up” box, it works perfectly.

    Any thoughts?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Checked by default?’ is closed to new replies.