How to Set Minimum Weight in WooCommerce Orders

How to Set Minimum Weight in WooCommerce Orders

if we want to set a limit of 500g for WooCommerce order. There are many ways to set the limitation for the WooCommerce order limit.

Here we will use the “woocommerce_check_cart_items” action which is provided by WooCommerce to run the functions and execute the code.

Setting a Minimum Weight for WooCommerce Purchase Limit

Many online stores don’t allow their customers to checkout cart until his purchase product weight does not exceed a preset limit. Minimum product weight requires to reduce delivery costs and the process becomes more streamlined.

You need to place the following code in the function.php, located in the theme folder.

Live A Reply

    Product Price Quantity Total

Cart totals

Subtotal $0.00
Total $0.00