Mandatory order fields in Craft Commerce 2
There is a setting for this specific instance allowEmptyCartOnCheckout.

Creating a commerce.php file in the config directory with the following code will prevent customers from checkout out with an empty cart.

&lt;?php

return [
  'allowEmptyCartOnCheckout' =&gt; false
];