This topic contains 4 reply and 3 voices, and was last updated by Sekander Badsha 6 years, 7 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
April 7, 2014 at 11:59 pm 18207
Sekander Badsha Hi! 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 :P Can you please answer me? :) Anders
April 8, 2014 at 7:31 pm 18288
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 3:45 am 18313
Tareq Hasan Tareq Hasan

Sorry for not replying and glad that you found that out 🙂

October 31, 2014 at 1:57 am 29492
Anders Anders


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?

November 10, 2014 at 12:45 am 30070
Sekander Badsha Sekander Badsha

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 4 Posts - 1 through 4 (of 4 total)