• Hello,
    How to display only “order” and “download” of woocommerce on the tutor_dashboard/nav_items. I would like that when the user clicks on order that it does not redirect him to “my_account / orders

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Parag Das

    (@parag44)

    Hello @blasyfeel

    You can do it easily by adding the additional links to the Tutor Dashboard Nav menu. Please follow this documentation: https://docs.themeum.com/tutor-lms/developers/editing-tutor-dashboard/

    Thank you!
    Best Regards,

    Thread Starter blasyfeel

    (@blasyfeel)

    Hello, thank you for your feedback. I saw the documentation to add a link that redirects to “www.lien.com” for exemple yes I know how to do it but to add for example download / woocomerce which redirects to “www.lien.com/dasboard/downloadt, I have a page not found 404 so I can’t display the woocommerce download on the dashboard You don’t have a piece of code please?

    Thread Starter blasyfeel

    (@blasyfeel)

    I do something according to my imagination by reading this “PS: If you add links to the Dashboard, you must add new view files to the tutor/templates/dashboard/ folder. The file should be named the same as the index (“custom_link” in the example code).” to display my orders in dashbord but it did not work.

    I copied the my-orders.php file that I took in "wp-content / plugins / woocommerce / templates / myaccount / my-orders.php" in "/ wp-content / plugins / tutor / templates / dashboard "and I also created a" my-ordes "folder and copied the same file there. I do the same for my the folder of my theme "/ wp-content / themes / edumall / tutor / dashboard /"
    
    I have this bit of code "" "add_filter ('tutor_dashboard / nav_items', 'add_some_links_dashboard');
    function add_some_links_dashboard ($ links) {
    $ links ['my-orders'] = __ ('Test', 'tutor');
    return $ links;
    } "" "" in function
    
    When I click on "Test" in the dashboard to display I have "Oops! This page could not be found."
    
    I don't know what to do anymore, can someone help me
    Plugin Support Parag Das

    (@parag44)

    Hello @blasyfeel

    Please follow these steps:

    1. Add the following code to your theme function.php file

    add_filter('tutor_dashboard/nav_items', 'add_some_links_dashboard');
    function add_some_links_dashboard($links){
    	$links['download_link'] = array('title' => __('Downloads', 'tutor'), 'auth_cap' => tutor()->instructor_role);
    	return $links;
    }

    2. Now, create a PHP file download_link.php on this location: tutor/templates/dashboard/

    3. Install and activate My Downloads Shortcode for WooCommerce. Link: https://www.ads-software.com/plugins/woocommerce-my-downloads-shortcode/

    4. Add the following code to the file download_link.php

    <?php
    echo do_shortcode('[woocommerce-my-downloads]');
    ?>

    Thank you!
    Best Regards,

    Can you clarify point number 2 please because it is not clear how to create the download_link.php file I did not find the path or the location of the file tutor / templates / dashboard as

    Plugin Support Parag Das

    (@parag44)

    Hello @prestigeameer

    Please create the file (download_link.php) inside the following folder
    /wp-content/plugins/tutor/templates/dashboard

    Thank you!
    Best Regards,

    Hi @parag44

    I followed exactly all the 4 steps given by you.
    But I’m still getting ‘404 page not found’ when clicking on the ‘Downloads’ link.

    Pls help

    Plugin Support Parag Das

    (@parag44)

    Hello @iniazz

    Could you please update/resave your permalink? Navigate to your WordPress dashboard > Settings > Permalink. Select “post name” and click “Save Changes”

    Thank you!
    Best Regards,

    Hi @parag44

    It’s working now. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to display only “order” and “download” of woocommerce’ is closed to new replies.