woothemes/woocommerce — pull request #6345 by Ninos (2014-09-21 18:54:55+00:00)
Title: Checkout - createaccount value check

There should also be a check of the value, because otherwise a radiobutton-style is not possible.

In my theme I changed the "createaccount" checkbox in the checkout to radio buttons. First radio button is "Checkout as guest", the other "Create an account".
See the html structure:
```

get_value( 'createaccount' ) && ( true !== apply_filters( 'woocommerce_create_account_default_checked', false ) ) ), true) ?> type="radio" name="createaccount" value="" /> domain ); ?>

get_value( 'createaccount' ) || ( true === apply_filters( 'woocommerce_create_account_default_checked', false ) ) ), true) ?> type="radio" name="createaccount" value="1" /> domain ); ?>

```
The problem is, that the isset() request is not enough, because if you check "createaccount-guest", the request still returns true and so it's like you selected "createaccount".

With my pr it's possible to use also radio buttons instead of the checkbox. Radioboxes are needed, if you create for example a step-by-step checkout (more user friendly). But I'm sure that there are also theme developers which want to use radioboxes instead of checkboxes on their one-page checkout.

Thanks :)