• Resolved Dinamicore

    (@dinamicore)


    Hello I posted this in your support forum. No answer to date

    Your plugin does not accept modifications of role capabilities, a serious limitation to allow it′s use for more complex projects like the one I am setting up.

    Please fix this or provide an alternative.

    Thanks.

    • This topic was modified 8 years, 6 months ago by Dinamicore.
    • This topic was modified 8 years, 6 months ago by Dinamicore.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Pablo,

    Apology for missing the thread you have created in our support forum.

    WC-Marketplace supports various capabilities but there is no capability for the role modification(s). We have the plan to come up with the similar capability in the form of add-on.

    Regards,
    Rimpa

    Thread Starter Dinamicore

    (@dinamicore)

    Hello Rimpa:

    We are already well ahead on time. We need to finish the Web.

    If you will be so kind to tell us where to hide the menu items.

    In the FRONTEND DASBOARD of your plugin.

    In the BACKEND of WordPress.

    Thanks

    Hi Pablo,

    Please override the theme template to hide the those tabs.

    Regards,
    Rimpa

    Thread Starter Dinamicore

    (@dinamicore)

    Hello Rimpa:

    I am trying with:

    li.hasmenu {display:none !important}

    However, the menu items (FRONT DASHBOARD) don′t have individual selectors, so I have no control selecting the items to hide.

    Please elaborate, providing the procedure to override.

    Thanks.

    • This reply was modified 8 years, 6 months ago by Dinamicore.
    Thread Starter Dinamicore

    (@dinamicore)

    What I need to override is your plugin FRONT and BACK dashoard. Please indicate the identificators of the menu selectors that need to be hidden.

    Thanks.

    Thanks for holding patience, Pablo. For frontend, please create a page named vendor_dashboard_menu.php (yourtheme/dc-product-vendor/vendor_dashboard_menu.php). Copy all the content from plugin’s file (vendor_dashboard_menu.php), then comment out the menus which you do not require.

    For backend:

    1. To remove for shipping and order: add_action( ‘admin_menu’, array( $this, ‘vendor_dashboard_pages’) );

    2. For sales report write the code to remove the capabilities view_woocomerce_report from dc_vendor role. do_action(‘wcmp_set_user_role’, $user_id, $new_role, $old_role);

    Regards,
    Rimpa

    Thread Starter Dinamicore

    (@dinamicore)

    Done.

    Thanks!

    Glad to know ??

    Regards,
    Rimpa

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Plugin unable to modify role capabilities’ is closed to new replies.