Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Set "Create new account" ceckbox checked as default #3098

Closed
wants to merge 1 commit into from

3 participants

@MaluNoPeleke

Set the "Create a new account" checkbox for new customers to "checked" as
default because it is better for the shop owner and the customer to have
a user account for each customer.

See #3097

@MaluNoPeleke MaluNoPeleke Set checkbox checked as default
Set the "Create a new account" checkbox for new customers to checked as
default because it is better for the shop owner and the customer to have
a user account for each customer.
291cc9c
@coenjacobs

I don't want to merge this in just because it's 'better' for the shop owner and customer, which I don't necessarily agree on. This varies between different types of stores. But not only that, a checkbox that is checked by default is a bit of a weird user experience. We're dealing with something similar in #2571.

If anything, we'll add a filter in here that will allow you to do so from a theme or a plugin.

@jameskoster What do you say?

@jameskoster
Owner

There are arguments for both. I think unchecked is best. Generally people prefer to check out as a guest (security conscious) and this way there's no way people can inadvertently sign up for something they don't want without opting in.

@MaluNoPeleke

Okay, then an option for this in the backend would be a good solution to fit all needs, wouldn't it?

@coenjacobs

No, but I'll make a filter for it. We are fans of the WordPress philosophy and specific to the 'Decisions over options' part. What this basically comes down to is that you don't need to be able to do everything with the core, as long as you can extend it to your liking using plugins.

@jameskoster
Owner

+1 on filter.

@jameskoster jameskoster closed this
@helgatheviking helgatheviking referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 4, 2013
  1. @MaluNoPeleke

    Set checkbox checked as default

    MaluNoPeleke authored
    Set the "Create a new account" checkbox for new customers to checked as
    default because it is better for the shop owner and the customer to have
    a user account for each customer.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  templates/checkout/form-billing.php
View
2  templates/checkout/form-billing.php
@@ -39,7 +39,7 @@
<?php if ( $checkout->enable_guest_checkout ) : ?>
<p class="form-row form-row-wide">
- <input class="input-checkbox" id="createaccount" <?php checked($checkout->get_value('createaccount'), true) ?> type="checkbox" name="createaccount" value="1" /> <label for="createaccount" class="checkbox"><?php _e( 'Create an account?', 'woocommerce' ); ?></label>
+ <input class="input-checkbox" id="createaccount" <?php checked($checkout->get_value('createaccount'), true) ?> type="checkbox" name="createaccount" value="1" checked="checked"/> <label for="createaccount" class="checkbox"><?php _e( 'Create an account?', 'woocommerce' ); ?></label>
</p>
<?php endif; ?>
Something went wrong with that request. Please try again.