• Resolved nikkeo

    (@nikkeo)


    Is there any way to get this to show up for my vendors on their wp-admin? I want each vendor to be able to export their orders.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi

    Try following code to add menu item

    add_action( 'admin_menu', function () {
    	global $wc_order_export;
    	add_menu_page( __( 'Export Orders', 'woocommerce-order-export' ),__( 'Export Orders', 'woocommerce-order-export' ), 'edit_shop_orders', 'wc-order-export', array( $wc_order_export, 'render_menu' ) , null, '55.7');
    });

    But I haven’t tested it with Dokan.
    thanks, Alex

    Thread Starter nikkeo

    (@nikkeo)

    hi thanks! just to be sure, where am I adding this code to?

    Plugin Author algol.plus

    (@algolplus)

    to functions.php in active theme OR via plugin “code snippets”

    Thread Starter nikkeo

    (@nikkeo)

    fyi, it didn’t work. the plugin appears under the woocommerce menu, which doesn’t seem to show up on wp-admin to begin with.

    Plugin Author algol.plus

    (@algolplus)

    I call add_menu_page, it should add new menu ( not nested in >Woocommerce).

    I’m sorry, but I have no time to install and test with Dokan.

    I can help you , if you setup test website and contact me via helpdesk

    Plugin Author algol.plus

    (@algolplus)

    This code adds menu for vendors

    // add menu
    add_filter( 'woe_current_user_can_export', '__return_false'); // stop default menu
    add_action( 'admin_menu', function () {// add as separate main
      global $wc_order_export;
      add_menu_page( __( 'Export Orders', 'woocommerce-order-export' ),__( 'Export Orders', 'woocommerce-order-export' ), 'edit_shop_orders', 'wc-order-export', array( $wc_order_export, 'render_menu' ) );
    });
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Woo/Dokan Vendors’ is closed to new replies.