Build a complex validation function

You can use Cart and Checkout Validation Functions to ensure that purchases meet certain criteria before customers can complete an order. In this tutorial, you’ll use Shopify Functions to enforce product limits on store merchandise.

A checkout with an error about a product quantity that is too high