{{order_number}} needs to be the correct order reference and not the checkout_id

Hi,

We’re having an issue with the {{order_number}} variable, sometimes it’s the checkout id rather than the order reference number,

We have found this thread which explains why it happens https://community.shopify.com/c/shopify-apis-and-sdks/explanation-of-the-order-number-value-in-the-checkout-script-for/m-p/1010631,

What we need to know is how can we work around this, we use the order number for tracking on marketing channels and currently these are not easy to validate without lots of admin,

Is there a way in which we can ensure that the order_number captured is always the reference number for the order and not the checkout id?

Or alternatively is there anything in the roadmap to help solve the issues with load on the database?

Thanks,
Liam