Execution order of Shopify Validation functions

Solved

Execution order of Shopify Validation functions

temurbek
Shopify Partner
22 0 2

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
1829 271 414

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
1829 271 414

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
22 0 2

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)