Checkout large orders
With the new Checkout extensibility setting, all the price calculation for custom product options is executed on Shopify server infrastructure. This ensures a very fast customer experience and prevents any server downtime affecting the customer not being able to check out.
Limitation
Shopify checkout allows only a limited amount of instructions (time) that can be used in the checkout to calculate a price of the order. For complex products with lots of options, the limit can be reached, and the calculations not completed, which can result in an order with incorrect prices.
Shopify is aware of this limitation and the issue has been reported and discussed by many app developers.
A common app setup can calculate between 50-100 cart items before reaching the limit, complex setups considerably fewer. When exactly the limit is reached is dependent on the complexity of the product option configuration. You can test adding items to the cart and verify the price updating, once the price total not including the option prices, the limit has been exceeded.
Data size limit
Shopify also limits how much data the price calculation can return: 20 KB per cart. When a cart goes over it, the calculation fails with OutputTooLargeError and Shopify falls back to the base price on every line, so all prices drop at once. Removing the last item restores them.
This limit depends on the total data in the cart, not only on the number of lines. Every line carries its option properties, and with Copy product options enabled in Bundle mode they are copied to the bundled item as well. Products with large custom line item properties (for example long upload details or a production manifest added by custom code) can reach the limit with only a few lines. Making the properties shorter moves the limit only slightly.
If your cart prices fall back at a small number of lines, use the solutions below: limit the number of cart lines, block the checkout on failure, or consider upgrading to Shopify Plus.
Shopify Plus allows apps to use a more efficient way of updating the product price. Standard product setups can calculate up to 200 items without reaching the limit.
Please note that every other app with the same functionality has this limitation, the limit is from Shopify and not from the app.
Solutions
Below is a list of possible solutions that can be applied to avoid large orders from not being calculated correctly.
Prevent checkout for large orders
The app can block the checkout when the calculation exceeded the limits, to prevent an order with incorrect prices from being created. Please reach out to our support, and we enable the block on failure setting for your store.
Once enabled, the cart cannot grow beyond the limit: when adding an item would exceed what Shopify can calculate, Shopify rejects the add to cart request, so an order with incorrect prices can never reach the checkout. The cart keeps its current items, correctly priced, and the customer has to place the remaining items in a separate order.
The rejected request returns a 422 error from the Shopify cart API (/cart/add.js ). Most themes show only a generic error message (for example "An error occurred in your cart") or nothing in this case. The theme can catch the 422 response and show a clear message instead, for example asking the customer to split the order. Our support can guide you on how to add this to your theme. Clearer error messages shown directly by the app are planned.
Combine it with the max line items validation below, so customers see the limit before they reach it.
Validate max line items
As the limit of maximal line items is different depending on the complexity of the product options setup, there can not be any general validation to prevent the large orders from not being calculated.

With the Quantity discount extension, it is possible to configure a validation that shows after a specific number of line items are in the cart. The customer will see a message to create two separate orders:

If you want to use this method, please reach out to our support, and we can configure the checkout validation based on your specific setup.
Shopify Plus
As mentioned in the beginning of this guide, on Shopify Plus apps can use the more efficient UpdateOperation which supports up to 200 cart line calculations with our app.