Home Forums Theme Support Dokan new field in seller registration

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Nayem 3 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #55896

    Manuel
    Member
    Post count: 19

    Hi! I want to introduce a field in seller registration. The new field has been created and I can change the value in wordpress backend.

    Could you tell me how to place this field in seller register?

    Thank you very much.

    #55929

    Nayem
    Moderator
    Post count: 6480

    To create new field you have to add code in template-tags.php file of Dokan plugin. Please open Dokan plugin folder/includes/template-tags.php file. In this file you will get this function- function dokan_seller_reg_form_fields() .After adding the filed you have to call this field into the admin area to get this field into the seller profile in the backend.

    Please open this file plugins/dokan-plugin/classes/admin-user-profile.php. In this file, there is an action name do_action( 'dokan_seller_meta_fields', $user ); . You can extend the user profile through this action.

    Thanks.

    #56010

    Manuel
    Member
    Post count: 19

    OK, I follow your step but the new field is not saved with your instructions. Where is the function that save the data from registration form?

    Thank you.

    #56022

    Nayem
    Moderator
    Post count: 6480

    Hello Manuel,

    You did not read my last post correctly. After adding the extra filed you have to call the filed into the seller profile in the backend.

    Please open this file plugins/dokan-plugin/classes/admin-user-profile.php. In this file, there is an action name do_action( 'dokan_seller_meta_fields', $user );

    By using this action you can add the extra field data for the user in backend profile. You have asked for customize feature and I have provided you the way to do it. If you need more help then you have to hire a developer for this. We do not provide support for custom work.

    Thanks.

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

The topic ‘new field in seller registration’ is closed to new replies.