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 Set Purchase Limits on Your WooCommerce Cart

Updated on August 2, 2016

2 Min Read
Reading Time: 2 minutes

WooCommerce offers several ways of setting the parameters  for WooCommerce purchase limit. Although the steps are different, the outcome is often identical. However, I consider the following steps to be very effective. I  will use the woocommerce_check_cart_items action provided by WooCommerce to run the functions and execute the code.  


Setting a Minimum Weight Requirement For WooCommerce Purchase Limit

Many stores often do not allow their customers to checkout until the weight of the purchase does not exceed a pre-set limit. Minimum weight requirements significantly reduce delivery costs and the process becomes more streamlined. Bear in mind that all weight calculations are carried out in weight units set under WooCommerce – > Settings – > Products.

Place the following code in the functions.php, located in the theme folder.

Set Purchase Limits on WooCommerce

Setting a Minimum Dollar Amount per Order

A minimum dollar amount is another important restriction on the store. Minimum dollar amounts are often used to keep all transactions at a common base value per transaction. To set this limit,  use the following code

min amountConclusion

WooCommerce permits you to utilize actions and filters to change the ordinary checkout process. I hope that you will implement these two limits to your WooCommerce store. If you need clarification or wish to contribute to the discussion, please leave a comment below.

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.