How to add a tracking link to the customer account page?

You can add a tracking link to the customer account page so that your customers can track their orders there.

Here's what the account page looks like after you added a tracking link there.

20220825_160616.png

Step 1
Go to your Shopify admin → Online Store → Themes → click Edit code from the Actions dropdown menu.

20220825_161609.png

Step 2
Go to theme code files → find the customers/account.liquid file under the Templates folder.

20220825_160800.png

Step 3
Under the line that reads:

<th id="ColumnFulfillment" scope="col" role="columnheader">{{ 'customer.orders.fulfillment_status' | t }}</th>

Add this code bellow:

<th> Track Order </th>

20220825_161120.png

Step 4
Under the line that reads:

<td headers="RowOrder ColumnFulfillment" role="cell" data-label="{{ 'customer.orders.fulfillment_status' | t }}"> {{ order.fulfillment_status_label }}

Add this code bellow:

<td> <a href="{{shop.url}}/apps/parcelpanel?order={{ order.name | remove: "#" }}&token={{ order.email | split: "" | reverse | join: "" | replace: '@', '_-_' | url_encode }}" target="_new">Click here to get shipping updates</a></td>

20220825_161320.png

Step 5
Save your changes.