Function size, configuration, and execution limits
Updated · SMART Functions Creator (E-TRADE PARTNER)
The editor's Function size meter estimates configuration size. Rules inside the same function share that configuration; adding another internal rule does not create a new budget. Shopify also limits the input, execution, and output of each function.
5.0 · SMART Functions Creator builds this as a Shopify Function, no code.
Start free trialOn this page
Function size is an estimate
The meter includes the editor configuration and additional input data with an allowance for serialized size. It is not an exact measurement of each metafield. Shopify does not return a metafield larger than 10,000 bytes to a Function. Keep configurations compact and check the saved result. See Shopify metafield limits.
Reduce large configurations
- Use product tags or collections instead of long product-ID lists where the targeting is equivalent.
- Remove unused Line groups and duplicated conditions.
- Separate functions have separate execution and configuration budgets. Several rules inside one function still share its budget.
- When splitting discounts, review combinations, active-function limits, and overlapping eligibility.
Execution and output are separate limits
A configuration can fit the editor meter and still do too much work on a large cart, or produce too much output. Test representative large carts and reduce repeated matching or excessive discount candidates. Shopify publishes current limits in its Functions resource limits.
Input data also affects rule design
Discount functions run independently. Cart amount conditions use the values available to that function, not the result of a planned sequence of other discounts. A property or metafield condition also requires the appropriate input and configured key. See Function inputs.