WordPress.org

Forums

MailPoet Paid Memberships Pro Add-on
[resolved] Checked by default? (9 posts)

  1. infiniloop
    Member
    Posted 9 months ago #

    Any way to make the checkbox to subscribe checked by default, meaning the user must UNcheck it to not be added?

    https://wordpress.org/plugins/mailpoet-paid-memberships-pro-add-on/

  2. infiniloop
    Member
    Posted 9 months ago #

    bump

  3. MailPoet Staff
    Member
    Plugin Author

    Posted 9 months ago #

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

  4. infiniloop
    Member
    Posted 9 months ago #

    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.

  5. MailPoet Staff
    Member
    Plugin Author

    Posted 9 months ago #

    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>
  6. infiniloop
    Member
    Posted 9 months ago #

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

  7. MailPoet Staff
    Member
    Plugin Author

    Posted 9 months ago #

    We're glad you liked it!

  8. infiniloop
    Member
    Posted 9 months ago #

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

  9. infiniloop
    Member
    Posted 8 months ago #

    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?

Reply

You must log in to post.

About this Plugin

  • MailPoet Paid Memberships Pro Add-on
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.