Request For Estimate
On WordPress 4.5.3 running Twenty Sixteen theme and Woocommerce, PHP version 5.3.
This is for a specific wp-admin modification… not really a “design” issue.
Products to be posted by users who have the “yuzer” role, which accesses wp-admin to post products.
A key goal is to handle thousands of categories of products, like Amazon, Target, etc.
I would like to have code that enforces a single category selection for products. The default category selection metabox should be replaced by a main metabox that has a user-friendly form of single-selection menu that handles lots of categories (the menus on etsy.com or target.com seem like good examples).
There should be an efficient validation on the server side, too, to ensure that browser-manipulation for multi-category selections are rejected. (There is a lot of jQuery code available for checkbox selection limits, but the problem with these cases is that the user can manipulate the browser to bypass the restriction.)
I would like the admin to have a way to prevent certain categories from being selected by the “yuzer” role. New categories by default can be selected by the “yuzer” role.
Code should be prepared in your own test environment. When it works, I will upload to my test environment, following your instructions on what to put where.
Addended for Clarification:
“Yuzer” is a role, not a username.
Except for the 2nd Requirement, the “yuzer” role is the equivalent of the Woocommerce “Shop Manager” role.
The “yuzer” can create new categories (though the 2nd Requirement allows the admin to later disable any of those categories from being assigned to a product by the “yuzer”).
The 2nd Requirement does not prevent the “yuzer” or anyone from seeing certain categories on the front end. It only prevents the “yuzer” from assigning them to products when creating and posting products.
You are not responsible for compatibility with other plugins that may be involved.
I am not planning on using multi-vendor plugins, or similar marketplace plugins.
You are welcome to recommend plugins that would support the two requirements.
You are welcome to involve other plugins in your proposed solution.
Regarding 3 above, if a category becomes restricted to the “yuzer” it does not affect products that the “yuzer” already posted under that category.
Only for reference & not in any way part of the requirement:
Interesting plugin: Restrict Taxonomies… In this plugin, new categories are restricted. But I want new categories to be available until the admin decides to restrict them.