1. Home
  2. Knowledge Base
  3. WooCommerce Wholesale Prices Premium
  4. Backend
  5. How To Hide Unused Wholesale Price Settings On The Product Backend

How To Hide Unused Wholesale Price Settings On The Product Backend

WooCommerce Wholesale Prices Premium adds several fields to your product edit screens, including Wholesale Minimum Order Quantity, Wholesale Order Quantity Step, and Product Quantity Based Wholesale Pricing. If your store does not use one or more of these features, the snippet below lets you hide the relevant sections from the product backend.

Prerequisites

How to hide the settings

Copy the snippet below, then add it to your child theme’s functions.php file or paste it into a code snippet plugin. Comment out or delete the block for any setting you want to keep visible.

add_action('admin_head', 'hide_wws_product_settings');

function hide_wws_product_settings() {
echo '
/*Wholesale Minimum Order Quantity*/
.wholesale-minium-order-quantity-options-group{
display:none!important;
}
/*Wholesale Order Quantity Step*/
.wholesale-order-quantity-step-options-group{
display:none!important;
}
/*Product Quantity Based Wholesale Pricing*/
.product-quantity-based-wholesale-pricing{
display:none!important;
}
';
}

This hides the selected sections on the product edit screen for all admin users. Save the file (or activate the snippet) and reload a product edit page to confirm the change.

Troubleshooting

The section is still visible after saving the snippet. Clear any server-side or page caches, then reload the product edit screen. If the section is still present, confirm the snippet is active and that there are no PHP errors in your site’s error log.

The CSS hides the section for simple products but not variable products. The snippet targets both simple and variable product templates using the same class names, so both should be affected. If a variable product row is still visible, check that the snippet was saved correctly and that no other plugin is adding a conflicting style.

Need Help?

If you have a question or run into any issues, we’re here to help.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support
Complete Your Purchase