Home Forums Theme Support Dokan Add plugin into vendor dashborad's left menu

This topic is: not resolved

This topic contains 8 replies, has 3 voices, and was last updated by  Nayem 3 years, 7 months ago.

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

    jeongsik min
    Member
    Post count: 21

    Hello,
    How can I add plugin into vendor dashborad's left menu?(link to toolbar icon)
    I already add plugin icon in vendor's product description visual toolbar.
    (This question is related to ‘How can I do if want to add plugin icon on vendor-side product description part.' topic)

    #74301

    Nayem
    Moderator
    Post count: 6480

    Hello,

    We do not provide support for any customization. If you want to customize the plugin then please hire a developer to do this for you. Please read our support policy- https://wedevs.com/support-policy/.

    Thanks.

    #74303

    jeongsik min
    Member
    Post count: 21

    but, please tell me which php file should I edit(and line number).
    Just like as how did you add the coupon pages, orders page in vendor dashboard menu.
    After that, I'll resolve it my self.

    #74304

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Please open dokan/includes/template-tags.php file. You will get this function here- function dokan_get_dashboard_nav(). You have to create a menu here then you have to manage re-writes rule for the page which will open after clicking on the menu. You have to render the settings by using this action- add_action( 'dokan_render_settings_content', 'your function name', 10 );

    Thanks.

    #74306

    jeongsik min
    Member
    Post count: 21

    Thanks, Nayem.
    It can help me.

    #74366

    jeongsik min
    Member
    Post count: 21

    Hello,
    How can I link this new button to my new function opend?
    I already did belows.
    1.Made new button adding codes in function dokan_get_dashboard_nav() in template-tags.php file.

        '3D' => array(
                'title' => __( '3D', 'dokan'),
                'icon'  => '<i class="fa fa upload"></i>',
                'url'   => dokan_get_navigation_url( '#' ),
                'pos'   => 90

    I think if I edit “‘url' =>dokan_get_navigation_url( ‘#' )” variable, I can link those two. But, don't know how can handle this one.
    2.Wrote this code add_action( 'dokan_render_settings_content', 'my new function name', 10 ); in my new function php file.

    #74421

    Nayem
    Moderator
    Post count: 6480

    Hello Min,

    As I have said before that we do not provide support for customization but I have tried to provide you the file location and few code snippets as sample. I can not provide more support on this.

    Thanks.

    #74475

    Ashraf
    Participant
    Post count: 1

    Hello Nayem,

    I'm looking for the same thing as Jeongsik, I followed your explanations, the first part worked correctly for me, I added a button on the left menu sending to “mywebsite.com/dashboard/posts/” but I can't link the URL with my php page having this code:
    < ?php echo do_shortcode('[wpfepp_post_table form="1"]'); ?>
    can you help me please

    Thanks

    #74479

    Nayem
    Moderator
    Post count: 6480

    Hello Ashraf,

    I have provided the possible direction to achieve this personalized page. I can not provide more support for this customization. We do not provide support for any customized feature. But I can share this gists- https://gist.github.com/nayemDevs/b2dd4b81d343220d90a1. You can get idea from this file to add a menu and add a new page on dashboard page.

    Thanks.

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

The topic ‘Add plugin into vendor dashborad's left menu’ is closed to new replies.