new field in seller registration

This topic contains 3 reply and 2 voices, and was last updated by Nayem 8 years, 9 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
July 15, 2015 at 7:44 pm 55896
Nayem 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.
July 16, 2015 at 12:02 am 55929
Nayem Nayem

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.

July 16, 2015 at 2:23 pm 56010
Manuel Manuel

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.

July 16, 2015 at 5:28 pm 56022
Nayem Nayem

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