Home Forums Theme Support Dokan Customize Seller Sidebar

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  towhid 3 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53498

    Chris
    Member

    I want to customize the seller sidebar. For example, I need to change the sidebar text ‘Products' to ‘Profiles' and ‘Orders' to ‘Bookings'. However, I can't find the file that contains the sidebar. Where is this file located?

    #53533

    towhid
    Participant
    Post count: 4505

    Hello Chris,

    Please open this link plugins/dokan-plugin/includes/template-tags.php and find this below line:

    function dokan_get_dashboard_nav() {
    
        $urls = array(
            'dashboard' => array(
                'title' => __( 'Dashboard', 'dokan'),
                'icon'  => '<i class="fa fa-tachometer"></i>',
                'url'   => dokan_get_navigation_url()
            ),
            'product' => array(
                'title' => __( 'Products', 'dokan'),
                'icon'  => '<i class="fa fa-briefcase"></i>',
                'url'   => dokan_get_navigation_url( 'products' )
            ),
            'order' => array(
                'title' => __( 'Orders', 'dokan'),
                'icon'  => '<i class="fa fa-shopping-cart"></i>',
                'url'   => dokan_get_navigation_url( 'orders' )
            ),
            'coupon' => array(
                'title' => __( 'Coupons', 'dokan'),
                'icon'  => '<i class="fa fa-gift"></i>',
                'url'   => dokan_get_navigation_url( 'coupons' )
            ),
            'report' => array(
                'title' => __( 'Reports', 'dokan'),
                'icon'  => '<i class="fa fa-line-chart"></i>',
                'url'   => dokan_get_navigation_url( 'reports' )
            ),
            'reviews' => array(
                'title' => __( 'Reviews', 'dokan'),
                'icon'  => '<i class="fa fa-comments-o"></i>',
                'url'   => dokan_get_navigation_url( 'reviews' )
            ),
            'withdraw' => array(
                'title' => __( 'Withdraw', 'dokan'),
                'icon'  => '<i class="fa fa-upload"></i>',
                'url'   => dokan_get_navigation_url( 'withdraw' )
            ),
        );

    and replace this below line of code with the above line of code and let me know the result.

    function dokan_get_dashboard_nav() {
    
        $urls = array(
            'dashboard' => array(
                'title' => __( 'Dashboard', 'dokan'),
                'icon'  => '<i class="fa fa-tachometer"></i>',
                'url'   => dokan_get_navigation_url()
            ),
            'product' => array(
                'title' => __( 'Profiles', 'dokan'),
                'icon'  => '<i class="fa fa-briefcase"></i>',
                'url'   => dokan_get_navigation_url( 'products' )
            ),
            'order' => array(
                'title' => __( 'Bookings', 'dokan'),
                'icon'  => '<i class="fa fa-shopping-cart"></i>',
                'url'   => dokan_get_navigation_url( 'orders' )
            ),
            'coupon' => array(
                'title' => __( 'Coupons', 'dokan'),
                'icon'  => '<i class="fa fa-gift"></i>',
                'url'   => dokan_get_navigation_url( 'coupons' )
            ),
            'report' => array(
                'title' => __( 'Reports', 'dokan'),
                'icon'  => '<i class="fa fa-line-chart"></i>',
                'url'   => dokan_get_navigation_url( 'reports' )
            ),
            'reviews' => array(
                'title' => __( 'Reviews', 'dokan'),
                'icon'  => '<i class="fa fa-comments-o"></i>',
                'url'   => dokan_get_navigation_url( 'reviews' )
            ),
            'withdraw' => array(
                'title' => __( 'Withdraw', 'dokan'),
                'icon'  => '<i class="fa fa-upload"></i>',
                'url'   => dokan_get_navigation_url( 'withdraw' )
            ),
        );

    Thanks

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

The topic ‘Customize Seller Sidebar’ is closed to new replies.