Create simple validation rules

You can use Cart and Checkout Validation Functions to ensure that purchases meet certain criteria before checking out, or completing an order. In this tutorial, you’ll use Shopify Functions to enforce an order maximum for buyers with insufficient order history, preventing them from placing their order.