Happening now! Exclusive AMA: Streamlining Fulfillment and Delivery with Shopify Experts | Ask your questions to be answered by our team!

How to change order_status_url to the Thank You page in the customer email notification code?

How to change order_status_url to the Thank You page in the customer email notification code?

JelenaZip
Visitor
3 0 2

Hello, 

I'm having trouble finding the right code/url to change the order_status_url to redirecting the customer once clicked on "View Your Order" to the Thank You page they receive upon checkout. 

Screenshot 2024-08-09 185746.png

 

The highlighted code above is what I want to change, at the moment when clicked on the "See Your Oder" button: 

Screenshot 2024-08-09 190045.png

---> it leads to the Order Status customer page: 

Screenshot 2024-08-09 190033.png

 

The expected result I want to have is that when users click on the order button in their received email, it redirects them to the Thank You page that they got when they completed their checkout. 
Main reason why I'd rather have this setup is because Shopify doesn't support local carriers from my country, and therefore this order_status tracking doesn't make much sense, especially because orders cannot be completed (other than fulfilled). 

Expected landing page: 
Screenshot 2024-08-09 190500.png
Can anyone help me with the right url?

Replies 3 (3)

Priyanka_
Shopify Partner
83 15 22

Hi @JelenaZip 

Replace you code within the email template :

 

 

 

<a href="{{ order.status_url }}" class="button__text">See Your Order</a>

 

 


with :

 

 

 

<a href="https://yourstore.com/pages/thank-you?order={{ order.id }}" class="button_text">See Your Order</a>

 

 

 If you find my solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

Was I helpful? 

Buy me a coffee 



If I managed to help you then, don't forget to Like it and Mark it as Solution!

JelenaZip
Visitor
3 0 2

Hey @Priyanka_ , 

Thanks for the quick response and help. Unfortunately, the code you've provided generates two errors: 

1) Upon clicking the "See Your Order" button on the received email confirmation/notification, it redirects me to a page that doesn't exist: 

Screenshot 2024-08-09 195049.png

- "Page not found" in Serbian. 

 

Should I create a Page and what with what content would I need to populate the page with? 

2) The orange button disappears around the font, leaving it with just orange letters instead: 

Screenshot 2024-08-09 194808.png

Could you help me out with next potential steps? 

Thanks!

Priyanka_
Shopify Partner
83 15 22

Hi @JelenaZip 

Sorry for the misunderstanding. Shopify doesn't permit direct redirection to the thank you page. This page only loads immediately after an order is placed. When a customer clicks on "See your order," they are redirected to the order status page. To manage order tracking, you could use an order tracking app, and  redirect customers to a tracking page when they click on "See your order."


If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

Was I helpful? 

Buy me a coffee 



If I managed to help you then, don't forget to Like it and Mark it as Solution!