• Resolved Kir 2012

    (@kir-2012)


    Hi, it’s often necessary to use multiple user roles on a wordpress site for each user, as is the case for the site I’m working on currently. The primary role is given during sign up, by the subscription management plugin, eg subscrip_type-1 and then a role manager offers the opportunity to add another role, via which we can add the dc_vendor role.

    This seems to work as it should – no problem, except that for some reason in the admin back end, when creating or editing a product as admin, when you go to vendor tab in the product details and use the dropdown to assign to a vendor, the vendor is not available to be selected.

    Is there is a snippet to add to functions to ensure that dc_vendor user type should always be available to select here in this wcmp dropdown ? Thank you

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter Kir 2012

    (@kir-2012)

    Thread Starter Kir 2012

    (@kir-2012)

    Actually, it isn’t working consistently unfortunately. What would be the best way to do this?

    Plugin Author MultiVendorX

    (@wcmp)

    Hi @kir-2012, generally assigning multiple roles to vendors does cause capability issues.

    But as you need this for your site, I would recommend you to add Vendor as the primary role and then assign other roles.

    Please note, that we haven’t worked with multi roles. So, if you do face any issue there, let us know.

    Thread Starter Kir 2012

    (@kir-2012)

    Hi, it’s not possible to add as a primary role without impacting the subs.

    Is there a snippet to change the user type that this dropdown pulls in?. For instance to add a user type?

    Plugin Author MultiVendorX

    (@wcmp)

    @kir-2012, can you please share a scrrenshot to explain which field are you referring to by “snippet to change the user type that this dropdown pulls in”.

    Thread Starter Kir 2012

    (@kir-2012)

    There is no option to do that, however it is straightforward for me to clarify for you.

    I am talking about inside the admin interface in wordpress, when you add a product, you can go to the product details and there are various options dealing with inventory, product type etc. Here there is a tab with VENDOR. In this tab you can select a vendor and the product will be attributed to this vendor. Vendors names don’t always appear here.

    Which capabilities are being checked for to dictate who appears in this list, that the users who are definitely vendors don’t appear here?

    Is there a snippet we can use in functions.php to pull in all users with the dc_vendor user type?

    Because although the vendors listed at my site show as approved vendors, although all vendor functions and capabilities seem to test just fine, the one inconvenience is that they don’t appear in this dropdown , can we add something to functions to ensure that all users with role dc_vendor appear in this dropdown? Thanks

    Plugin Author MultiVendorX

    (@wcmp)

    Thanks for the clarification. The thing is we had an issue in our last update.
    We will fix this in our next update.

    In the meantime, we have added a fix in our GitHub.

    So, after downloading the plugin from here – https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/archive/refs/heads/master.zip, follow these steps :
    – Delete the installed WC Marketplace via wp-admin >> plugin
    – Unzip the GitHub plugin
    – Rename the folder as “dc-woocommerce-multi-vendor” and remove the master tag. Now, zip this folder again.
    – Install this plugin on your site.

    Thread Starter Kir 2012

    (@kir-2012)

    Ok thank you I will follow your instructions and let you know if it worked

    Thread Starter Kir 2012

    (@kir-2012)

    Hi,can you tell me the changes? I can’t update the whole file yet – I will in the not too distant future when updating licenses etc but I can’t do it currently so I need to know the change that fixed this issue please, thanks

    Plugin Author MultiVendorX

    (@wcmp)

    Not to worry. We have already released an update. Just update the plugin to the latest version.

    Thread Starter Kir 2012

    (@kir-2012)

    Hi, thanks and yes I did understand what you said in your previous message, but as I said I am not able to update the whole plugin file just yet, it will break my site. I would be grateful if you could tell me the change that fixed this fault please so that I can correct the current instance I’m working with, and it will be good to know that once we go live with the site an update all of the plugins and licenses, this will have been fixed. Many thanks for your help.

    Rajsekhar Chatterjee

    (@rajsekharchatterjee11)

    Thread Starter Kir 2012

    (@kir-2012)

    Hi, thank you for this, updated but not working still. Is there something you can tell me how you’re testing for capability / status to show a user in this dropdown so I can try and make this work?

    Thread Starter Kir 2012

    (@kir-2012)

    Or perhaps a method / snippet to call in all users might help in this case, if there’s no simpler way?

    Rajsekhar Chatterjee

    (@rajsekharchatterjee11)

    Hi,
    As you can see this is working on our end – https://scrnli.com/files/nDcRzzhCuts3TS.
    We are using woocommerce_json_search_vendors this ajax function to fetch vendors details.
    Thanks

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Vendor dropdown in admin when using multiple user roles’ is closed to new replies.