Dokan plugin: how to modify fields in registration page?

This topic contains 6 reply and 2 voices, and was last updated by towhid 9 years, 3 months ago
Viewing 6 Posts - 1 through 6 (of 6 total)
Author Posts
January 12, 2015 at 1:55 pm 33926
towhid Hi Dokan, I'm currently strggling to customize dokan plugin to fit in Korean site. On seller reg. form, 1. How to remove "last name" field or integrate it with first name field? ( changing "first Name" to "Name") --> Just want to use "name" field for most of KO site don't separate "first name" and "last name" 2. I want to customize address field ( adding a popup button to select address in Korea), could you guide me to do that? ( I already have that address function by installing another plugin) 3. For phones field, I want add select box (carrier numbers in Korea) and then concatenate it with regular phone fields to save it to database. Is this possible also? All of above things I don't want to manipulate the core files, how can I accomplish these things? --> use function.php to remove existing filter/action and redefine them OR, --> put template-tags.php,wc-functions.php, etc. to /child-theme/dokan directory and customize them Best, JP
January 12, 2015 at 3:18 pm 33937
Jun Pyo Jun Pyo This reply has been marked as private.
January 12, 2015 at 3:42 pm 33941
towhid towhid

Hello Jun Pyo,

For 1,2 and 3 you can try yourself first and all of this point to work you have to do with child theme.

Step 1: Create function.php file in Child Theme.

Step 2: Write remove_action() in your Child Theme’s function.php. You must have to remove the action of that function which contains those code for this registration filed.

Step 3: Write add_actionand you have to create a new function then in this function you can do whatever you want to do to customize.

You can also read this to know more how to modify parent file by child theme- http://code.tutsplus.com/tutorials/how-to-modify-the-parent-theme-behavior-within-the-child-theme–wp-31006.

Thank You 🙂

January 12, 2015 at 5:05 pm 33948
towhid towhid

Hello Jun Pyo,

Can you please switch to language in English and see that weird icon appear or not?

Thank You 🙂

January 12, 2015 at 5:22 pm 33953
Jun Pyo Jun Pyo This reply has been marked as private.
January 13, 2015 at 1:35 pm 34033
Jun Pyo Jun Pyo

Hi, I think I found where it happens regarding the red “X” icons during seller registration.

it seems that from line 674 of form-validate.js is the spot, which is ShowLabel function.

To be precise, “this.settings.errorPlacement(label, $(element) );” do this in line 697.
I guess (I’m not sure) dokan tries to set this label to success from line 703 to 709 (this.settings.success( label, element );) but nothing happens.

I can confirm that the element’s valid attribute remains “true” all the way to the process.

But I still don’t get why this happens and how to deal with this, please help.

(Currently I set the site language to “English”, fyi)

January 19, 2015 at 12:42 pm 34492
towhid towhid

Hello Jun,

Sorry for the late reply. Did you fixed red “X” icons during seller registration. Can you please send me the file location for form-validate.js because I have to check the code for the line you had mentioned.

Thank You 🙂

Viewing 6 Posts - 1 through 6 (of 6 total)