Home Forums Theme Support Dokan Required fields in registration

This topic is: not resolved

This topic contains 4 replies, has 3 voices, and was last updated by  Sekander Badsha 4 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #18207

    Post count: 58


    How do I make fields in the seller registration not required? I have deleted:
    required="required" and <span class="required">*</span>, but it there is still a problem with woocommerce, that makes the fields still required ๐Ÿ˜›

    Can you please answer me? ๐Ÿ™‚



    Post count: 58

    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 ๐Ÿ˜‰


    Tareq Hasan
    Post count: 2831

    Sorry for not replying and glad that you found that out ๐Ÿ™‚


    Post count: 58


    I have now updated to the new plugin, but now I can't get this to work ๐Ÿ˜› Any ideas? ๐Ÿ˜‰
    How to make fields in the registration not required?


    Sekander Badsha
    Post count: 2067

    Hello Anders,

    The codes are still in the template-tags.php. We kept the structure of the codes same in the plugin and you can follow the steps you did before.

    The file is now located at “/wp-content/plugins/dokan-plugin/includes/” and starts from line number 361.

    Let me know if anymore detailed instruction.

    Thank you ๐Ÿ™‚

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

The topic ‘Required fields in registration’ is closed to new replies.