Set a minimum order in Woocommerce 3.2.x

Sometimes it does not make sense that the shipping cost is greater than the total shopping cart, so it is better to limit that situation by establishing a minimum order.

We will place a message in the shopping cart and we will prevent them from reaching the payment page, for this we will use the link “woocommerce_check_cart_items”.

For the following example, the minimum quantity will be 50.

Remember to put this code in functions.php

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to Top