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.

CloudwaysCDN — a powerful solution that offers superior performance and satisfied global audience for your business. Read More

Easily Hide Product Quantity Field From WooCommerce Product Pages

Updated on  June 22, 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 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

Conclusion

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.

 

Share your opinion in the comment section. COMMENT NOW

Start Growing with Cloudways Today.

Our Clients Love us because we never compromise on these

About The Author

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:

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

THERE’S MORE TO READ.