• Resolved droonss

    (@droonss)


    1. Is it possible to transfer “orders” from the woocommerce control panel to the MarketKing control panel? I really like your control panel and I would like to completely disable the control panel woocommerce
      (My site is a catalog – no sales. Registration is only allowed for “MarketKing sellers” and by invitation only. I do not need a buyer control panel (address, downloads, profile). However, I would like to leave “orders” that would be “sellers” MarketKing bought additional services, such as advertising space.And in the future, when I switch to MarketKing PRO – subscription packages.)
      Another small question) Is it possible to integrate MarketKing user avatar with wordpress user avatar? So that when adding a MarketKing avatar, the avatar is displayed, for example, in articles (sellers are allowed to publish the frontend).
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WebWizards

    (@webwizardsdev)

    Hi there,

    Thanks for using our plugin!

    (1) I understand you’re referring to the WooCommerce “My Account” page. I suppose we could redirect this page to the MarketKing dashboard page, but the problem is, as you mentioned, for orders the sellers place directly.

    I think the best solution is to work with a plugin that can customize the my account page and remove panels like Downloads, Addresses, etc. For example this plugin can do it: https://yithemes.com/themes/plugins/yith-woocommerce-customize-myaccount-page/?_1706790612

    Sellers will see only their own purchases here (when they buy advertising, subscriptions etc).

    (2) Regarding avatars:

    In the latest version of MarketKing, I think this already works! We recently added a feature for this, so feel free to test. If a seller sets a profile image on the marketking vendor dashboard, it should show as their avatar in other places as well.

    Thread Starter droonss

    (@droonss)

    Thanks for the quick response.
    Yes, the user’s avatar works. Thank you!
    For the first question:
    Can we add an extra menu item to the MarketKing dashboard and show the shortcode there?
    This code works fine for woocommerce:

     // 1. Register new endpoint (URL) for My Account page
    
      function bbloomer_add_my_loans_endpoint() {
        add_rewrite_endpoint( 'my-loans', EP_ROOT | EP_PAGES );
    }
      add_action( 'init', 'bbloomer_add_my_loans_endpoint' );
      
    // ------------------
    // 2. Add new query var
      
    function bbloomer_my_loans_query_vars( $vars ) {
        $vars[] = 'my-loans';
        return $vars;
    }
      add_filter( 'query_vars', 'bbloomer_my_loans_query_vars', 0 );
      // ------------------
    // 3. Insert the new endpoint into the My Account menu
      function bbloomer_add_my_loans_link_my_account( $items ) {
        $items['my-loans'] = 'my loans';    return $items;
    }  
    add_filter( 'woocommerce_account_menu_items', 'bbloomer_add_my_loans_link_my_account' );
      // ------------------
    // 4. Add content to the new tab
      function bbloomer_my_loans_content() {
       echo do_shortcode( '[html_block id="9265"]' );
    }
      add_action( 'woocommerce_account_my-loans_endpoint', 'bbloomer_my_loans_content' );

    Can we achieve something similar for MarketKing? Оr any other method?

    P/S Can we reorder the control panel menu items. So that when you go to the control panel, the first tab would be “my products”, or for example a welcome page with my shortcode (if possible)
    I do not need the control panel, but if I disable it, then when I go to the control panel, the user sees a blank page.
    Thank you

    Plugin Author WebWizards

    (@webwizardsdev)

    It is possible to add an extra menu page there. Please scroll down to the end of this article where we have a guide and code example for this:

    https://woocommerce-multivendor.com/docs/developer-documentation-functions-hooks-custom-code-plugin-integrations/

    To reorder those, what you can do is to modify the sidebar.php template. In MarketKing, all dashboard templates can be customized, by copying them to your child theme. You can copy sidebar.php and then edit it to add, remove, reorder items. For that please see:

    https://woocommerce-multivendor.com/docs/how-to-edit-marketking-pages-templates/

    Thread Starter droonss

    (@droonss)

    Thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable woocommerce control panel?’ is closed to new replies.