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

Marc_Schroth
Tourist
10 0 3

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
Marc_Schroth
Tourist
10 0 3

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 %}
HariKrishna
Shopify Partner
685 17 77

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.

Customer Success @ PluginHive
Shipping Automation | FedEx shipping | Multi-carrier shipping | Shipment Tracking | Australia Post shipping
0 Likes
Mak_flurry
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
Marc_Schroth
Tourist
10 0 3

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
rmaqsood
New Member
1 0 0

Hi Cam-,

 

You are a lifesaver. It took me so long to understand the URLs structure and where to find this status page. I bought a custom theme but it didn't even set this up anyway your solution worked like a charm.

0 Likes
mv-cherryvibes
New Member
1 0 0

I'm late to the party but hopefully you'll see this message.

Is there anyway to add a tracking link directly to the nav instead of a .liquid page?

Thanks in advance for any help.

2021-07-23_19-56-24.png

0 Likes