Topic: Unpredictable execution order between Shopify validation function extensions.
Issue: When using both Product Discount Validation (validates discount eligibility) and Cart and Checkout Validation (validates cart/checkout rules), their execution order varies. Sometimes Cart and Checkout Validation runs first, other times Product Discount Validation, leading to unreliable line item validation.
Current platform behavior: Shopify confirms there is no guaranteed execution order for functions at this time.
Impact: Developers cannot depend on a deterministic sequence or validate line items based on the results of another function.
Requests/feedback: A request was made for control over execution order (e.g., ability to set priorities). Shopify staff asked for more details to pass along to the Checkout team.
Status: No resolution or changes announced; remains an open feature request/ongoing discussion.
Hello.
Is there any execution order of Shopify validation functions?
I am using both Product Discount Validation and Cart and Checkout Validation function extensions
But sometimes Cart and Checkout Validation is running initially, sometimes Product Discount Validation
So Cart and Checkout Validation cannot validate line item properly.