Support » Plugin: MailPoet Checkout Subscription for WooCommerce (Legacy) » Checkbox set to "checked" by default

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor MailPoet


    Add this code to your footer.php file right below the call to wp_footer()

            $('#mailpoet_checkout_subscribe').prop('checked', true);

    Is there a way to have the checkbox “checked” by default on the CheckOut and New User Registration page using CSS only? Something like below?

    #mailpoet_checkout_subscribe {

    OR would any of the below work by adding to functions.php of the child theme?

    add_filter( ‘mailpoet_woocommerce_subscribe_too’, ‘__return_true’ );
    add_filter( ‘mailpoet_woocommerce_enable_checkout’, ‘__return_true’ );
    add_filter( ‘mailpoet_checkout_subscribe’, ‘__return_true’ );

    Your inputs will be appreciated. Thanks much.

    This should be a built in option!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkbox set to "checked" by default’ is closed to new replies.