Actually, it isn’t working consistently unfortunately. What would be the best way to do this?
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.
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?
@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”.
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
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.
Ok thank you I will follow your instructions and let you know if it worked
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
Not to worry. We have already released an update. Just update the plugin to the latest version.
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.
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?
Or perhaps a method / snippet to call in all users might help in this case, if there’s no simpler way?
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