Accepting credit cards, warehouses, and shipping and fulfilling orders
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!
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025