Easily Hide Product Quantity Field From WooCommerce Product Pages

by Owais Alam  January 10, 2018

WooCommerce is a great platform for ecommerce stores simply because of the many features and customization options. In many cases, developers could customize the store exactly to the requirements of the business model.

There are cases where WooCommerce is used to create bulk order store that deal in fixed order sizes. In other cases, the store just deal in a single physical or digital product. In both cases, the field of Item Quantity becomes extraneous. The best strategy in this scenario is to remove the field completely from the page.

Hide WooCommerce Product Quantity Field

Fortunately, WooCommerce provides a filter to remove this field from the store. All you have to do is to paste the following code in the functions.php of the installed theme.   

Hide Particular Type of Product

Another scenario is when the store owners need to remove a particular type of product from the item order page. For this, just add the following code to the functions.php of the theme:

Here is how this code would change the page:

Grouped Product

Hide From All Product Type

If you wish to hide the quantity field completely for all products, add the following snippet to the functions.php:

Product Result


In this short tutorial, I demonstrate how you could remove the order quantity field from the product page. All it takes is an addition of simple code snippets to the functions.php file. If you need help, just drop a comment below and I will get back to you.


Start Creating Web Apps on Managed Cloud Servers Now!

Easy Web App Deployment for Agencies, Developers and E-Commerce Industry

About Owais Alam

is the WordPress Community Manager at Cloudways – A Managed WooCommerce Hosting Platform and a seasoned PHP developer. He loves to develop all sorts of websites on WordPress and is in love with WooCommerce in particular. You can email him at owais.alam@cloudways.com

Stay Connected:

You Might Also Like...