• Resolved ufuk36

    (@ufuk36)


    I have already added first name, last name and phone number to registration form but when i choose seller registration it was wanted from this fields. So i removed them but now it was not allow to register. it says you must fill the fields. pls help me.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @ufuk36 ,

    These 3 fields are required fields in the seller registration. Are you using a custom form for your registration? Please share which templates have you modified?

    I have checked your site and the form looks like a modified version so to give proper suggestions I need to understand how the modification was done in first place.

    Thank you.

    Thread Starter ufuk36

    (@ufuk36)

    i have deleted first name, last name, phone number fields from seller-registration-form(ı am not sure exact name). But now i can not register because page says this fields must be filled. How can i disable requiring for this fields.

    Hello @ufuk36 ,

    You can use this code your themes functions.php file to remove the fields from required check –

    add_filter('dokan_seller_registration_required_fields', function($required_fields) {
        unset($required_fields['fname']);
        unset($required_fields['lname']);
        unset($required_fields['phone']);
    
        return $required_fields;
    }, 100);

    I hope this works for you. If not, contact us through support so that we can access your site and check the modifications.

    Thank you 🙂

    Thread Starter ufuk36

    (@ufuk36)

    It worked. Thanks a lot.

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

The topic ‘Removing fields from registration form’ is closed to new replies.