1. Accueil
  2. Base de connaissances
  3. WooCommerce Wholesale Prices Premium
  4. Backend
  5. Comment masquer les paramètres de prix de gros inutilisés dans le backend du produit

Comment masquer les paramètres de prix de gros inutilisés dans le backend du produit

Our WooCommerce Wholesale Prices Premium automatically adds a number of extra fields to your product edit screens which can take up quite a bit of room on the interface. For example, the Wholesale Minimum Order Quantity, Wholesale Order Quantity Step, and Product Quantity Based Wholesale Pricing fields.

These fields are here so you can properly configure the sales conditions for your product, however, some users might not be using one or more of these pricing features in their wholesale shop at all.

If you want to declutter/hide those unused wholesale price settings on the product backend, simply modify the snippet below to adjust which wholesale pricing feature you want to hide from your product settings. Then put it into your theme or child theme’s functions.php file. This will hide those features on the backend interface.

add_action('admin_head', 'hide_wws_product_settings');

function hide_wws_product_settings() {
echo '<style type="text/css">
/*Wholesale Minimum Order Quantity*/
.wholesale-minimum-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;
}
</style>';
}
Cet article vous a-t-il été utile ?

Articles liés

Besoin de support ?

Vous ne trouvez pas la réponse que vous cherchez ?
Contacter le support
Finalisez votre achat