Set a minimum order quantity for checkout
This code sets a minimum order quantity before checkout is allowed to proceed. The checkout button is hidden and an error message is displayed. This example sets the minimum order to 12. The error message can be edited to suit.