What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Execution order of Shopify Validation functions

Solved

Execution order of Shopify Validation functions

temurbek
Shopify Partner
24 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
1831 273 421

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
1831 273 421

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
24 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)