B
B
balaknegor2018-03-19 17:07:40
WordPress
balaknegor, 2018-03-19 17:07:40

How to attach supplier information to a product in WooCommerce and show it only to the manager?

Hey!
You need to display the wholesale price and supplier contacts.
Ideally, this should be done on the product page on the site, but the main thing is that this info. showed only to the manager. If it is difficult, then you can this ifn. display in the order console...
Please tell me how to do this?
With respect to toaster users!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-03-19
@azerphoenix

Hello!
Let's divide your question into several components:
- implementation of the functionality
- limitation of the functionality.
1 question can be done, for example, through custom fields. Plugin - Advanced Custom Fields. Create the required fields and upload them on the product page. And in order for all this to be displayed when placing an order in the order console, you need to use a hook and add your meta fields there.
Question 2 will need to look at user capabilities and restrict access to fields for certain groups of
Woocommerce users - https://docs.woocommerce.com/document/roles-capabi...
WordPress - https://codex.wordpress.org/Roles_and_Capabilities
You need to be familiar with custom fields, woocomertz, and VIs to implement something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question