In ..templates/checkout/form-billing.php there is a chance for a user to create an account when purchasing. How to hide the second password field? I made it so that user can see his password and therefore has no reason to enter it twice.
<div class="create-account">
<p>Registreeri konto, et saaksid jälgida tellimuse kulgemist. Kui sul juba on konto, siis palun sisene lehe ülemisest lingist.</p>
<?php foreach ($checkout->checkout_fields['account'] as $key => $field) : ?>
<?php woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); ?>
<?php endforeach; ?>
</div>
Thanks.