Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.
Solved

Execution order of Shopify Validation functions

temurbek
Shopify Partner
11 0 1

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
1776 263 383

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
1776 263 383

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
11 0 1

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)