How to get the link to the order status page a customer sees after checkout

Highlighted
Tourist
5 0 1

This thread was very helpful!

For me, {{ order.order_status_url }} goes to a https://checkout.shopify.com URL, while I wanted to link to <my_store>/account/orders/<checkout_token> (which I can customize using the customer/order.liquid template).

My final version was this:

{% for order in customer.orders %}
{% assign orderPath = order.order_status_url |
replace: 'https://checkout.shopify.com/YOUR_STORE_ID_HERE', shop.url |
split: '/authenticate?key' |
first %}
{{ orderPath }}<br>
{% endfor %}

 

I use {{ shop.url }} instead of hard-coding, in case our store URL ever changes. And I strip off the extra part of the URL that comes after the checkout token.

0 Likes
Highlighted
Tourist
5 0 1

Slight adjustment to the above. Don't see a way to edit my previous post :(

{% for order in customer.orders %}
{% assign accountPath = shop.url | append: '/account' %}
{% assign orderPath = order.order_status_url |
replace: 'https://checkout.shopify.com/5052170330', accountPath |
split: '/authenticate?key' |
first %}
{{ orderPath }}<br>
{% endfor %}
1 Like
Highlighted

Hello @Ruben_Pierre-An,

 

Once your customer places an order, they will receive an email confirmation from Shopify regarding the order. They can click the link in that email, which will take them back to the thank you page, from where they can check their order status. Apps like Shipment tracking & notify will help in automating this process.

 

This app automatically sends email notifications to your customers, every time there is a change in the tracking status and also make order tracking a part of your online store with an integrated "Track Your Order" page.

0 Likes
Highlighted
Tourist
3 0 0

hey, i'm going to try this... is there anyway i can link this on a basic page so that guests are able to track their order by being prompted with 'email and order number?'

0 Likes
Tourist
5 0 1

Nothing turn-key that I'm aware of. To view an order status page, the customer needs to be logged into their account.

You might be able to build your own service that uses Shopify's REST Admin API to look up orders that way, but that would definitely take some development effort.

0 Likes