Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi,
We currently have a very simple script added to "Order status page additional scripts" on the checkout settings which redirects users to an external thank you page.
This feature is deprecated so I've been trying to work on an alternative solution. My initial attempt was to use "Customer events", as suggested by Shopify, but these scripts don't seem to allow window.location to run.
Can anyone help point me in the right direction here, I simply want to redirect the order thank you page to an external thank you page. Are "Customer events" even the right place for this function?
Cheers,
Sam
Solved! Go to the solution
This is an accepted solution.
Hi again Sam,
I don't think it will be possible to bypass the page completely - but to add a link to this external site you could use a button UI component on a target like purchase.thank-you.block.render.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi LookoutStudio,
Just to confirm, do you want to bypass the native Thank You page entirely, or add a link to the existing Thank You page that redirects customers to an external page?
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam,
Thank you for replying.
The goal is to bypass the native thank you page entirely however a button may suffice if this isn't possible.
Cheers,
Sam
This is an accepted solution.
Hi again Sam,
I don't think it will be possible to bypass the page completely - but to add a link to this external site you could use a button UI component on a target like purchase.thank-you.block.render.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thanks for confirming. I had suspected that may be the case but it has been good to rule it out. I will look into creating a button instead.