New Shopify Certification now available: Liquid Storefronts for Theme Developers

Execution order of Shopify Validation functions

Solved
temurbek
Shopify Partner
8 0 0

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.

Thanks in advance

Accepted Solution (1)
SBD_
Shopify Staff
Shopify Staff
1670 235 344

This is an accepted solution.

Hey @temurbek 

 

We currently have no guarantees about the order of execution of functions.

Would love to pass along your feedback to the Checkout folks - can you elaborate on your use case?

Scott | Developer Advocate @ Shopify 

View solution in original post

Replies 2 (2)
SBD_
Shopify Staff
Shopify Staff
1670 235 344

This is an accepted solution.

Hey @temurbek 

 

We currently have no guarantees about the order of execution of functions.

Would love to pass along your feedback to the Checkout folks - can you elaborate on your use case?

Scott | Developer Advocate @ Shopify 

temurbek
Shopify Partner
8 0 0

Thank you for your response.

It would be great If there is control over Shopify Validation Functions execution order (I mentioned the use case in the question)