• Resolved flo1982

    (@flo1982)


    Hallo,

    I am using Dokan lite.
    I want to know, how can I validate the input of the vendors registration fields before it will be send to the database.
    For example, I want to check if the Email adress contains a @ sign or if the Zipcode starts with 50.
    At the moment it just check if something is written in the registration fields.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @flo1982,

    The registration form in Dokan automatically validated the @ when a user registers. There is no default option for the zip on registration so the validation is not there. But while you enter zip code on checkout it automatically makes sure that the zip code is valid or not ( as the checkout is coming from WooCommerce it is maintained from WooCommerce).

    Let me know in case you need more information or details on the matter. I am here to help.

    Regards.

    Thread Starter flo1982

    (@flo1982)

    Hello @roshni07 ,

    thank you for your answer.
    I want that vendors with a zipcode which start not with 50 are not able to registrate. Therefor I need a code to validate the zipcode.

    Also I want to add and reduce fields in the registration form. Will the pro version of dokan have this function ?

    I created a separate vendor registration page. But the terms & conditions checkbox does not exists. How can I add it ?

    Before I will use dokan pro, I want to know if all these functions are existing.

    Kind regards

    Hello @flo1982,

    By default, the my-account page is unable to restrict registration from a specific zone only. You may need modification in order to achieve the requirement.

    To modify seller registration form (Reduce field) you need to customize the file: wp-content/plugins/dokan-lite/templates/global/seller-registration-form.php

    You need to follow the procedure below with the paid version to enable the option :

    1. Create a page for term and condition
    2. Set the page on the Dokan page settings: https://prnt.sc/rje9yk
    3.Set on the WooCommerce settings as well. : https://prnt.sc/rjeam0
    3. Enable the terms and condition on registration: https://prnt.sc/rjebn2

    This should enable the terms and conditions on the registration page. Please follow the procedure and let me know the result 🙂

    Best Regards.

    Thread Starter flo1982

    (@flo1982)

    Hello @roshni07 ,

    how can I validate a (custom) registration form field ?

    When I add a field in the wp-content/plugins/dokan-lite/templates/global/seller-registration-form.php, how can I validate and save the information in my database ?

    Kind regards,
    Florian

    Hello @flo1982 ,

    I have already explained the validation functions available in Dokan in your other ticket – https://wordpress.org/support/topic/vendor-registration-validation/#post-13088585

    You can read this discussion to learn more about how to save custom registration field – https://wordpress.org/support/topic/add-custom-fields-to-vendor-registration-form-and-settings-page/

    As these are custom development queries, you should consider discussing with a developer for better results.

    Thank you 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Validate of registration fields’ is closed to new replies.