How to change the "Continue shopping" button on the Thank you page to redirect to another page.

How to change the "Continue shopping" button on the Thank you page to redirect to another page.

joco
Visitor
1 0 0

I want to change the link and the text "Continue shopping" on the Thank you page. Basically I want a redirection to a specific page not to the Home Page (current link). How do I do that? 

Replies 2 (2)

LukasBouhlel
Tourist
5 0 4

To change the redirect link for the "Continue Shopping" button on the "thank you page", simply go to the "Checkout" section of the Shopify admin settings and go to "Order status page" so you can enter a script for the "thank you page"

Capture response #1.JPG

Capture response #2.JPG
<script>
window.addEventListener('load', function() {
const checkoutLinkRedirect = document.querySelector('.step__footer a');
if (checkoutLinkRedirect) {
const newUrl = 'https://your_url.com';
checkoutLinkRedirect.href = newUrl;
}
});
</script>

amit9790
Visitor
3 0 0

Order status page additional scripts page is deprecated what is the alternative for this