Order Status Page with different URLs

frankth
Visitor
1 0 0

Hello,

 

I am reaching out as I have a javascript code in the additional script of the order status page.

 

The script has been working perfectly until recently, when I noticed that for some customers, the script was not run.

 

Upon investigation, I noticed that the customers, after completing the checkout, selecting a manual payment method and clicking on the pay button, could be redirected to two different urls:

 

- First URL format: https://shop.com/581879/orders/c1c620d00059c7cf26a1f53d44bc

=> In this case, the script runs perfectly

 

- Second URL format: https://shop.com/checkouts/c/bf8219d07a38548c82782050/thank_you

=> In this case, the script does not run

=> This seems to be a temporary "checkout" page, as when I refresh the page, I am redirected to an URL with the first URL format and the script runs perfectly

 

This seems to happen randomly.

 

Does anyone know what is happening?

Can I force the url to be of the first format to ensure the script will run every time?

 

Thank you very much!

Replies 0 (0)