Chat with us, powered by LiveChat

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

WordPress 5.0 is out. Test all the great new features before upgrading your Live website. Read How!

How to Hide WooCommerce Product Quantity Field from Product Pages

Updated on January 10, 2018

2 Min Read
Reading Time: 2 minutes

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 a bulk order store that deals in fixed order sizes. In other cases, the store just deals 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 want to hide WooCommerce product quantity field then 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 WooCommerce 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.


Share your opinion in the comment section. COMMENT NOW

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

Be the first to check out WordPress 5.0

Use our Staging feature before upgrading your website to WordPress 5.0.

Get Our Newsletter
Be the first to get the latest updates and tutorials.