Add fields to woocommerce registration form
-
Hi
Woocommerce allows user registration. I would like to add two woocommerce fields to that registration form (billing_first_name) and (billing_last_name). Is it possible to add these two files with editin the “Mytheme”/woocommerce/myaccount/form-login.php template file?
I can’t seem to get the template right. For example there’s this kind of code which is email field how could I modify it to make it add billing_first_name ?
<p class="form-row form-row-wide"> <label for="reg_email"><?php _e('Email', 'woocommerce'); ?> <span class="required">*</span></label> <input type="email" class="input-text" name="email" id="reg_email" value="<?php if (isset($_POST['email'])) echo esc_attr($_POST['email']); ?>" /> </p>
I’m quite new to wordpress so I might be totally off here.
Thank you in advance for your help!
-J
- The topic ‘Add fields to woocommerce registration form’ is closed to new replies.