Home Forums Theme Support Dokan Dokan plugin: how to modify fields in registration page?

This topic is: not resolved

This topic contains 6 replies, has 2 voices, and was last updated by  towhid 4 years, 2 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #33926

    Jun Pyo
    Member
    Post count: 8

    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

    #33937

    Jun Pyo
    Member
    Post count: 8
    This reply has been marked as private.
    #33941

    towhid
    Participant
    Post count: 4505

    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 🙂

    #33948

    towhid
    Participant
    Post count: 4505

    Hello Jun Pyo,

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

    Thank You 🙂

    #33953

    Jun Pyo
    Member
    Post count: 8
    This reply has been marked as private.
    #34033

    Jun Pyo
    Member
    Post count: 8

    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)

    #34492

    towhid
    Participant
    Post count: 4505

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

The topic ‘Dokan plugin: how to modify fields in registration page?’ is closed to new replies.