Home Forums Theme Support Dokan Insert field on registration form

This topic is: resolved

This topic contains 8 replies, has 3 voices, and was last updated by  Sekander Badsha 4 years, 9 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #26530

    Federica Canton
    Member
    Post count: 10

    Hello, i need to add some field on registration form for seller.

    I know that i must edit file find on dokan/includes/template-tags.php on line 367. So, i can add the field and show on front-end but this data not save and i can't see on backend.

    I need to add some new filed and show some exist field.

    For example i need to show on front end (in the seller registration form) the field about shipping address (address, state, city etc).

    How can i do that?

    Thank's

    #26535

    Federica Canton
    Member
    Post count: 10
    This reply has been marked as private.
    #26587

    Sk
    Moderator
    Post count: 371

    Hi,

    To add extra field in dokan registration form: navigate to dokan/includes/template-tags.php on line 446. edit the function dokan_seller_reg_form_fields() add extra fields you want.

    To save those field: navigate to dokan/includes/wc-functions.php on line 1351. add those fields to the function dokan_on_create_seller() in $dokan_settings array.

    To show those fields on dokan seller dashboard settings page:
    navigate to dokan/class/template-settings.php on line 140 in function setting_field(). add your extra fields in this function.

    To save dokan dashboard settings extra field: navigate to dokan/class/template-settings.php on line 82 in function insert_settings_info(). add your extra fields in this function to save.

    thank you… 🙂

    #26795

    Federica Canton
    Member
    Post count: 10

    Hello, thank’s much. I try to add in a child theme but not function. There are many problem with this Dokan version anche child theme (i use css and function child theme and also i like to create a child theme for this personalization).

    And also how can i auto-activate a seller to insert the product after registration?

    (Sorry i can't edit the question past)

    Thank’s

    #26815

    Sekander Badsha
    Member
    Post count: 2067

    Hello Federica,
    The above was instruction about what is located where. You should write codes according that inside your child theme.

    Navigate to Dokan > Settings > Selling Options > New Seller Enable Selling, check and save. This will enable the sellers start selling right after registering.

    #26866

    Federica Canton
    Member
    Post count: 10

    Hello, i try to create a child theme insert this `/*
    Theme Name: Dokan Child
    Theme URI: http://www.mysite.it/
    Description: Tema Child Dokan
    Author: My Name
    Author URI: http://www.mysite.it
    Template: dokan
    Version: 0.1.0
    */`

    But i can't work on child theme and child file (function / header etc). Maybe any problem on theme?

    #26981

    Sekander Badsha
    Member
    Post count: 2067

    Here is the documentation for creating a child theme for Dokan: http://docs.wedevs.com/category/themes/dokan/developer-documentation-dokan/child-theme/

    Please read through all the docs. You'll get a clear idea about what to do and how to do.

    #27032

    Federica Canton
    Member
    Post count: 10

    Hello,

    i've read the documentation and i have a problem.

    So i've create a new folder and a new file, style.css (similar es documentation):

    /* 
    Theme Name: Dokan child
    Theme URI: http://wedevs.com
    Description: A child theme for Dokan
    Author: Wedevs
    Author URI: http://wedevs.com
    Template: dokan
    Version: 1.0.5
    License: GPL
    */
    
    /* Theme customization starts here 
    --------------------------------------------*/
    
    .home .product-sliders li h3,
    .home .product-sliders li .item-button a.fav,
    .home .product-sliders li .item-buttom a.add_to_cart_button {
       color: #000;
       background-color: #f0f0f0;
    }

    And a function.php

    <?php
    
    define('THEMEROOT', get_stylesheet_directory_uri());
    function scripts() {
         wp_enqueue_style( 'dokan-child-style', THEMEROOT . '/style.css', false, null );
    }
    
    add_action( 'wp_enqueue_scripts', 'scripts',99);
    
    ?>

    I've active the child theme but..nothing function..

    I need help. Thanks

    #27189

    Sekander Badsha
    Member
    Post count: 2067

    Please provide your admin login credentials in a private reply. I will have a look what is going wrong.

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

The topic ‘Insert field on registration form’ is closed to new replies.