Custom Checkbox
-
Hi,
I’m attempting to create a custom signup email checkbox with your plugin:
<form class="woocommerce-EditAccountForm edit-account" action="" method="post"> <?php wp_nonce_field( 'save_account_details' ); ?> <input type="hidden" class="woocommerce-Input woocommerce-Input--email input-text" name="account_email" id="account_email" value="<?php echo esc_attr( $user->user_email ); ?>" /> <p><label>Receive News Emails: <input type="checkbox" name="mc4wp-subscribe" value="1" onchange="this.form.submit()" /></label></p> <input type="hidden" name="action" value="save_account_details" /> </form>
It’s working, except doesn’t show the box ticked if subscribed. Is there a way I can toggle this value=”1″ on the checkbox?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Checkbox’ is closed to new replies.