I'm trying to redirect the "thank you" page to our own domain, so the customers get back to the shop after payment.
I tried adding this code to /admin/settings/checkout/
<script> window.location.href = 'https://www.example.com/basket.php'; </script>
But the problem is that it also redirects the Order Status page:
Is there a way to redirect the page the customers see after checkout BUT keep the order status page so customers can still track their orders?
Tira here, from support.
Thanks for your question. I understand that you want to apply a script to redirect your customers from your thank you page back to your store.
To add a script, you could use the additional scripts section of your Shopify admin by clicking into “Settings > Checkout” and locating the Additional Scripts box under Order Processing:
You can add HTML, Liquid or tracking scripts for referrals, return on investment or conversions. Additional scripts are outside the scope of our support. For help to add this to your store, I recommend hiring a Shopify Expert. Shopify Experts help with coding customizations on your store to enhance your business. You can find a list of Shopify Experts here.
We also have a help doc with more information on adding additional scripts here.
When a customer places an order. They will receive an Order Confirmation email, which includes a button that links to their order status page. You can find and adjust the order confirmation page if you need to, by logging into your Shopify admin, then click on "Settings > Notifications". When you land on this page, the order confirmation link will look like this:
On the next page, you can click on "Actions > Preview" where a pop-up will show that will have a button that your customer can click on to view their order:
This is what the order status will look like after the customer opens it up from their order confirmation:
Let me know what your thoughts are!
Did a customer reach out to you asking to be redirected to your store after receiving the thank you page?
Thanks for getting back to me @ngnmdev.
I provided the steps to add an additional script to your store to help the community should they come across your topic in search of an answer to the same questions, and I wasn't sure if you had used the same help doc to add this script in. Thank you for letting me know that you’ve followed these steps, it gives me and the community a clear picture of what this looks like on your side.
I am hearing that you want to redirect back to your store from your thank you page, and when you have applied your own redirect, it is also redirecting to your order status page.
If that's right, then this is something that would be outside our scope of support, as it sounds like an additional script was added to your checkout. I mentioned earlier that you can hire a Shopify Expert to help. Here’s where you can find a list of Shopify Experts.
I am curious, what happens when customers get redirected back to your store, will they be making a new purchase, or are you hoping to provide them with a special offer?
Does anyone in the Shopify Community have any suggestions to help?