• Resolved shaokaichris

    (@shaokaichris)


    Hi there,

    First of all, thanks for make such great plugin.

    Please find the attached screenshot, when I was creating a new user and selecting the role for the new user, there’re 2 vendors in the role menu.

    I have installed wc vendor, but uninstalled already. could it be because of that causing 2 vendors role shown? how can I remove/clean the other vendor?

    Thank you,
    Kai

    https://www.ads-software.com/plugins/dc-woocommerce-multi-vendor/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter shaokaichris

    (@shaokaichris)

    @shaokaichris

    Thanks for the positive feedback. Let me cross-check this issue on my test setup now. Would update you very soon.

    Regards,
    Sandeep

    @shaokaichris

    FYI, this is a default WordPress property by virtue of which, a custom user role and the pages created by a plugin aren’t removed even after deactivation/deletion of the concerned plugin. For example, roles like Customer is added when WooCommerce is installed but even after you remove WooCommerce plugin, customer role is available in the user role dropdown.

    I understand that since WC Vendor and WC Marketplace are plugins operating in same domain- multivendor, presence of duplicate roles is very confusing for admin. I am right now checking for the possible alternatives to remove these user roles so that you as well as other users can easily migrate to our plugin.

    Please hold your patience, I would be back very soon with some kind of solution.

    Regards,
    Sandeep

    Thread Starter shaokaichris

    (@shaokaichris)

    @dualcube

    Thank you for checking. ??

    Hello Kai,

    Thanks for your patience. It’s very strange that we received similar complains from 2 more users earlier today, so we are planning to develop a plugin, which would allow current WC Vendors users to easily migrate to WC Marketplace. Till then, the solution would need some work from your end.

    add_action(‘after_switch_theme’, ‘theme_activation’);
    function theme_activation() {
    remove_role(‘vendor’);
    remove_role(‘pending_vendor’);
    }

    You would need to put the above code in the function.php file of your theme. Then deactivate the theme and activate it back. Check if the duplicate user roles are removed. If yes, you may delete the above code and again deactivate + reactivate the theme.

    Please note that this action would change the status of vendor role for the vendors created within WC Vendors. They would attain a no-role status which you can change to vendors again.

    Let me know if this helps.

    Regards,
    Sandeep

    Thread Starter shaokaichris

    (@shaokaichris)

    @sandeep

    I will give it a shot and let you know. Thank you very much. ??

    Kai

    Glad to be of help Kai. I am yet to hear from other 2 users so would wait for your message to confirm that this solution is working fine.

    Thread Starter shaokaichris

    (@shaokaichris)

    @sandeep

    Just tried, the unexpected user role is removed.

    Thank you,
    Kai

    Thread Starter shaokaichris

    (@shaokaichris)

    Perfect ??

    Hope you enjoy the plugin. I am marking this support forum resolved now. If you have any queries, do not hesitate to ask. You can reach us out via support forum here as well as directly on live chat on https://wc-marketplace.com/

    Have a great day ahead!

    Regards,
    Sandeep

    Hi,
    Is any one there?
    I am having same problem two “vendor” shown in role menu,
    also tried this

    add_action(‘after_switch_theme’, ‘theme_activation’);
    function theme_activation() {
    remove_role(‘vendor’);
    remove_role(‘pending_vendor’);
    }

    & deactivate / reactivate the theme, but still having same problem…..

    Guide me to solve this issue…..Thanks!!

    • This reply was modified 8 years, 5 months ago by @123.

    Apology for delayed response @himani1. It is suggested to do the fresh installation of the site. After that also, if you face the same issue, do let us know we will definitely help you to the earliest.

    Regards,
    Rimpa

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘two "vendor" shown in role menu’ is closed to new replies.