How to Remove Quantity Field from WooCommerce Product Page

By default, WooCommerce shows a quantity selector on a product’s page. This might not always be needed, so here are the ways in which you disable this feature.

Method 1: Using the option in the Product Data metabox

This meta box is found on the wp-admin page for editing that particular product. Scroll down past the editor and you will find the Product Data metabox and the setting under Inventory.

Method 2: Using a hook or filter

You can insert this piece of code into your theme’s functions.php file, or in a custom plugin if you wish.

Hope you find that helpful.

About Jean Galea

Jean Galea is a WordPress developer, entrepreneur and padel player. He is the founder of WP Mayor, the plugins WP RSS Aggregator and EDD Bookings, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

Let's block ads! (Why?)


SHARE

Unknown

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment

0 comments:

Post a Comment