• I want to make shop name optional for registration of new vendors.
    I also want to hide “Last Name” field and use “First Name” as “Full Name”.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Byvex Technologies

    (@byvex)

    Is there any filter or hook to modify fields.

    Hello @byvex

    By default, modification of the Vendor Registration form feature is unavailable in the Dokan lite. it will require to coding-level customization. You can modify the registration form as per your requirements by following this location:

    • Filename: Registration.php
    • Path:?wp-content\plugins\dokan-lite\includes
    • Filename:?Seller-Registration-Form.php
    • Path: wp-content\plugins\dokan-lite\templates\global

    Best Regards,

    Thread Starter Byvex Technologies

    (@byvex)

    add_filter('dokan_seller_registration_required_fields', function(){
        return [
            'fname'    => __( 'Please enter your first name.', 'dokan-lite' ),
            'phone'    => __( 'Please enter your phone number.', 'dokan-lite' ),
        ];
    });
    

    Use this code to make last name and shop name not required. You still need to remove “required” attribute from html input tags.

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @byvex,

    You will need to use the unset() function to remove the value from the array. Please unset the value of the shopname key and the field will be made non-required. I can see the user has already shared the necessary instructions to remove the required fields.

    According to our support policy, we are unable to share any custom solution to our users currently. Thanks!

    Plugin Support sazdhossain

    (@sazdhossain)

    Hi?@byvex

    Due to inactivity, we are marking this topic as resolved. For any further issues or queries, feel free to create another.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Make “Shop Name” optional in vendor registration form’ is closed to new replies.