How can I disable some fields in woocommerce edit product page for certain products?

Viewed 11

I have some SKU's which I don't want accidentally someone from the staff, to add wholesale pricing and become available to wholesale customers. For that I want to create a function that checks if the product being edited belongs to the restricted SKU's and disable those fields in the screenshot, but just for these products only.

The plugin that produces these fields is called wholesale suite.

Screenshot of the fields I need to disable

How can I check for these sku's and how to target and disable those fields?

I would appreciate any help thanks in advance!

0 Answers
Related