Home Forums WoodMart support forum Register Form

Register Form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #71662

    mrwolves
    Participant

    Hello,

    I see at the register form its allowed only by email too register, how can i change it too more nessecary fields ?

    #71678

    Hello,

    Logging and Register forms are the Woocommerce functionality and our theme does not have any options add any fields.

    Best Regards

    #71682

    mrwolves
    Participant

    Thanks,

    I found out when i include this code in /theme/functions.php that it is a much better form 🙂

    function wooc_extra_register_fields() {?>
    <p class=”form-row form-row-wide”>
    <label for=”reg_billing_phone”><?php _e( ‘Phone’, ‘woocommerce’ ); ?></label>
    <input type=”text” class=”input-text” name=”billing_phone” id=”reg_billing_phone” value=”<?php esc_attr_e( $_POST[‘billing_phone’] ); ?>” />
    </p>
    <p class=”form-row form-row-first”>
    <label for=”reg_billing_first_name”><?php _e( ‘First name’, ‘woocommerce’ ); ?><span class=”required”>*</span></label>
    <input type=”text” class=”input-text” name=”billing_first_name” id=”reg_billing_first_name” value=”<?php if ( ! empty( $_POST[‘billing_first_name’] ) ) esc_attr_e( $_POST[‘billing_first_name’] ); ?>” />
    </p>
    <p class=”form-row form-row-last”>
    <label for=”reg_billing_last_name”><?php _e( ‘Last name’, ‘woocommerce’ ); ?><span class=”required”>*</span></label>
    <input type=”text” class=”input-text” name=”billing_last_name” id=”reg_billing_last_name” value=”<?php if ( ! empty( $_POST[‘billing_last_name’] ) ) esc_attr_e( $_POST[‘billing_last_name’] ); ?>” />
    </p>
    <div class=”clear”></div>
    <?php
    }
    add_action( ‘woocommerce_register_form_start’, ‘wooc_extra_register_fields’ );

    https://www.cloudways.com/blog/add-woocommerce-registration-form-fields/

    #71696

    We are glad you have solved the issue by customization. If you have any questions please feel free to contact us.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)