How to add more field in registration form

This topic contains 8 reply and 4 voices, and was last updated by Simon 10 years, 8 months ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
March 31, 2014 at 7:53 am 17636
Simon Hi Support, I need to add one or two more field for Seller during registration. How to do that? Thanks
March 31, 2014 at 12:04 pm 17646
Sk Sk

Hello Mohd Ghufran,

You could manually add your fields in the function function dokan_seller_reg_form_fields() in dokan/includes/template-tags.php on line 367.

Please be aware on next update if you edit the function. You may lose your custom code.

Thank you.

April 2, 2014 at 3:04 am 17816
Anders Anders

Hi!

How do I make parts of the registration forms for sellers not required?
For example I want the phone number not to be required 😉

Anders

April 2, 2014 at 11:13 am 17831
Sk Sk

Hi Anders,

You could change required fields in the function function dokan_seller_reg_form_fields() in dokan/includes/template-tags.php on line 367.

erase <span class="required">*</span> from field label and required="required" from field.

The field will not be required any more.

Thank you.

April 2, 2014 at 12:24 pm 17835
Anders Anders

Hi!

Thank you for your quick reply!

I have already done that, but it seems like there is some kind of woocommerce problem when I have deleted that 😛 Your form is no longer requiring it, but woocommerce do.

How do I disable this for woocommerce as well?

April 2, 2014 at 11:51 pm 17871
Anders Anders

Any tips?

April 3, 2014 at 11:11 pm 17978
Anders Anders

I guess that there is here I have to change something 😉
Dokan – E-commerce with WordPress made easy: wc-functions.php (includes/wc-functions.php)

April 8, 2014 at 7:31 pm 18289
Anders Anders

I found out of it although Wedevs does not answer 😉 When you have finnished the steps over deleting required="required" and <span class="required">*</span> in dokan/includes/template-tags.php on line 367, you have to do one more thing.

Go to the dokan/includes/wc-function.php: find

 if ( $role == 'seller' ) {

        $first_name = trim( $_POST['fname'] );
        if ( empty( $first_name ) ) {
            return new WP_Error( 'fname-error', __( 'Please enter your first name.', 'dokan' ) );
        }

In stead of “seller” add some thing else here: for exemple subscriber 😉

Then the fields will no longer be required 😉

April 9, 2014 at 5:08 pm 18365
Simon Simon

Hi,

So how to do also change the fields in the seller’s profile in the dashboard (front end) and the admin (backend WP) ?

thanks

Simon

Viewing 8 Posts - 1 through 8 (of 8 total)