publishpress / PublishPress-Capabilities

PublishPress Capabilities gives you control over all the permissions on your WordPress site.
13 stars 3 forks source link

Better Support for WooCommerce Orders #137

Open stevejburge opened 3 years ago

stevejburge commented 3 years ago

Controlling who can see orders has been a common request.

One request:

Our store has 3 different locations and order gets delivered to customer from their nearest location. So we need the manager to access their locations order only somehow. For example, Hub Manager A can not see other hub Managers order.

And another:

Is it possible to give a user to have full access to orders for a certain category? I'm planning to share my store with my sister, so she will have a women's category. Can we find a way to let her accept and view and edit any orders came from women's category only ?

We also have a request for permissions on different order statuses: https://github.com/publishpress/PublishPress-Capabilities/issues/95

stevejburge commented 3 years ago

@agapetry suggests we may need a new piece of the plugin to support WooCommerce

they use custom fields so we would have to develop a new solution for it. To avoid an overly abstract UI, it would probably need to be Woo-specific.

amjulash commented 3 years ago

Is there any update on this? Really like to have this for our website.

stevejburge commented 3 years ago

@amjulash Sorry, not yet, but we are working on better WooCommerce support this year

stevejburge commented 2 years ago

I manage a Woocommerce shop for wholesalers, placing their orders on the shop's frontend, just like "normal" B2C customers do. Additionally there are some specific users (organized in a special user role), who also can login to the shop's backend (where I hide certain information and functions from them, at the moment using the plugins 'User role editor' and 'Adminimize') and place their orders directly on the orders list page of Woocommerce, like shop adminstrators can do. This works fine so far.

While logged in, they of course can see and edit the orders of any other shop customer, which is not intended for understandable reasons. Therefore I am searching for a way to restrict access for this specific users / user role to only their own orders. It should not only be an addition to filter the orders by a select box, which of course could be changed, but rather they should not be able to see and access anything else than their very own orders at all.

amjulash commented 2 years ago

I have two clients who in need of this feature.

stevejburge commented 2 years ago

Thanks @amjulash

We are planning to build this as a Pro feature in Q1 2022.

olatechpro commented 2 years ago

@stevejburge @agapetry I think i'll need proposal on what to do or how to do it and maybe specification on the requirement? The order post status is another requirement which is related but this talk about category or something similar. So, i believe the order status is no longer part of this requirement and if so, can i get specification on the expectation of this issue and what the application should be like? I'm not able to decide this.

stevejburge commented 2 years ago

@olatechpro Yes, sorry, this is a random collection of requests

I'm looking at ways we can hook into the orders screen and the options really are limited.

For example, "Product Categories". Well, the orders aren't in those categories. Or orders from wholesalers ... that could come from a dozen different 3rd party plugins.

I think we have a lot of different customers requests that might need to be handled by individual solutions. I'm not sure what common solutions we could build into a plugin.

olatechpro commented 2 years ago

@stevejburge taking this one by one.

So, The request: Limiting specific roles to only see orders for specific category? The proposal: Add a multi role selection dropdown to woocommerce category screen when adding new category or editing old category and selected roles will be excluded from seeing or allowed to see orders in this category based on specification?

Will the proposal above work or can you kind of provide proposal to this implementation?

I don't want to do this on my own and end up doing something entirely different from intention

stevejburge commented 2 years ago

@olatechpro I'm not sure if this is worth doing to be honest. I think the customer requests are too fragmented