Customize Seller Sidebar

This topic contains 1 reply and 2 voices, and was last updated by towhid 8 years, 10 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
June 28, 2015 at 9:24 pm 53498
towhid 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?
June 29, 2015 at 10:37 am 53533
towhid towhid

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