How to redirect user to custom URL after checkout?

Hey all,

We’d like to redirect users after they checkout back to a page on our website.

We previously had a script (as below) but I was just made aware that this is deprecated.

Is there an app for this? Any recommendation would be great, thanks!

<script>setTimeout(function() {
   window.location.href = "https://www.designrules.co/";
}, 3000);</script>

For context, we did not develop our website with shopify; instead, we just use shopify for checkout/purchasing. So our website will take a user to the checkout page, but after checkout, we want to bring them back to our non-shopify site. If we don’t, and the user clicks the “return to store” button, it’ll take them to the actual shopify subdomain for our shop, which isn’t set up and looks like a whole bunch of nothing. In short, very confusing.

Hi @designrulesco ,

I’m Kate from PageFly - Shopify Landing Page Builder.

Regarding your question, currently the option to add code script to Checkout on Shopify has been deprecated. So I recommend these two other solutions:

  1. Add a button: Insert a button on the page saying “Go Back to Site Page” and embed it with a URL to the page you want to redirect users to
  2. Use app: Use a Shopify app to customize the thank you process and redirect to the site. For example, ReConvert Upsells & Cross sells, AfterSell Post Purchase Upsell, ReSell Post Purchase Upsell, …

I hope it helps. Feel free to reply if you need to discuss anything in detail.

Have a nice day!

Cheers,

Kate | PageFly Team

Hi Kate,

I’m in the same situation, except I just want to simply redirect to a page after checkout. Can you guide me with this please?

You said I can add a button? is it on the check out page? how?

Hi king! Im facing the exact same situation.

Im using Shopify as a checkout and connect to payment gateway.

And i need to redirect the customer to our successful checkout link.

I appreciate if you share the solution you found (if u did find it).

We eventually got it to work by putting this script in the “Order status page additional scripts” on the Checkout page in Settings. You have to explicitly enable it since it’s deprecated, and I’m not sure when they’ll force it off.

From my recollection, it also didn’t necessarily work right away but it did start working, and I can’t really explain that side of it lol.