• Resolved ExistDigital

    (@existdigital1)


    Hi,
    I am unable to find template code to change the navigation menu titles for Dokan lite.
    Please can you direct me which code I need to edit?

    EG I want to change “Products” to “Listings” in the vendor dashboard – as trying to setup a services marketplace and we will not be trading products.

    Thank you in advance.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Shafinoid

    (@shafinahmad01)

    Hi @existdigital1

    You can use the translation method to change any default strings of the Dokan plugin.

    Use the Loco Translate plugin to translate or change any internationalized string Dokan. I can suggest you a third-party article that might help you configuring the plugin start translating the Dokan.

    You can have a look through this blog to modify the strings via the Loco Translate plugin.

    Best Regards!

    Thread Starter ExistDigital

    (@existdigital1)

    Hi Shafina,
    Thanks for your reply.
    I only need to translate 1 menu item, installing a plugin to do this seems like overkill – is there really no way to do this via PHP or one of the Dokan templates?

    Thanks in advance.

    Shafinoid

    (@shafinahmad01)

    Hi @cousinr

    Yes, there’s obviously a way of customizing via PHP.

    Navigate to the below file path and modify line no.393.

    File Path: \wp-content\plugins\dokan-lite\includes\
    File Name: template-tags.php

    You can directly modify the plugin file or customize it via a child theme. I haven’t suggested that before as the file is not a template file, with plugin update it will get replaced. That’s why it will be better if you can customize that via your child theme.

    Best Regards!

    Thread Starter ExistDigital

    (@existdigital1)

    Hi,
    Thank you, I’ve modified the PHP on the original plugin, but will look into how I can add a snippet to control this.

    See modified code below.

    'products' => array(
                'title'      => __( 'Items', 'dokan-lite' ),
                'icon'       => '<i class="fa fa-briefcase"></i>',
                'url'        => dokan_get_navigation_url( 'products' ),
                'pos'        => 30,
                'permission' => 'dokan_view_product_menu',

    Thank you for your help.

    Hello @existdigital1,

    You can add the below snippet to your child-theme functions.php file or you can use a Code snippet plugin –

    function dokan_add_seller_nav_url($urls) {
    
    $urls['products']['title'] = 'Items';
    
    return $urls;
         
    }
     
    add_filter( 'dokan_get_dashboard_nav', 'dokan_add_seller_nav_url', 11);

    Hi, tell me please!
    How to translate these 2 points in the seller’s office? “Announcements” “tools”

    I can not find it not in the light version, not in the pro, i translate with “loco”

    Shafinoid

    (@shafinahmad01)

    Hi @urskycomua

    Thanks for getting back to us. You should be able to change the “Announcement” string with the same custom code added above.

    But as you are using “Loco Translate”, you can find that string on the Dokan Pro. I have checked that already as you can see from this screenshot. If you cannot find the string then make sure you have clicked on the sync button (screenshot) before searching for the string.

    Stay Safe ??

    Thank you very much, it worked!

    Can I have one more question?

    I am displaying a product page via elementor can I add “first name” “last name” and “phone number” of the seller?

    Shafinoid

    (@shafinahmad01)

    Hi @urskycomua

    Thanks for asking but unfortunately, it’s not achievable by default with the Dokan plugin.

    It will require plugin customizations to achieve such functionality. But I’m unable to provide any custom solution as per our support policy. I believe you can understand.

    Best Safe ??

    Shafinoid

    (@shafinahmad01)

    Hello,
    I believe you are doing well,

    As you haven’t replied for a long, I’m considering that you have got the solution and I’m also resolving this topic.

    But feel free to create another one anytime.

    Stay Safe ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Dokan Lite – how to change Vendor Dashboard Menu titles’ is closed to new replies.