My main goal is to change the "create an account" checkout to register the email as a username. The easy way I thought of was changing "Account Password" from password to email to override user_login
.
However, I can't seem to find where the "Password" text box is coming from. I know that this the code I needed under form-billing.php
, but I am unsure how only password is showing considering there's a for-loop
.
<?php foreach ( $checkout->checkout_fields['account'] as $key => $field ) : ?>
<?php woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); ?>
<?php endforeach; ?>
Any advice is appreciated.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire