Re: Redirecting order thank you page to external URL

Solved

Redirecting order thank you page to external URL

LookoutStudio
Shopify Partner
3 0 0

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

Accepted Solution (1)
Liam
Community Manager
3108 341 879

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

View solution in original post

Replies 4 (4)

Liam
Community Manager
3108 341 879

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

LookoutStudio
Shopify Partner
3 0 0

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

Liam
Community Manager
3108 341 879

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

LookoutStudio
Shopify Partner
3 0 0

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.