How to show Tracking URL on customer account liquid.

Shopify Partner
31 0 10

I'm trying to show the customer's tracking # URL link on the "Customers/account.liquid" file of my theme. The same code works perfect on the "Customers/order.liquid" but why not on the account page?

<a href='{{ order.fulfillment_tracking_url }}'>?</a>

I've also tried all of the following below and it still doesn't work.

<a href='{{ order.fulfillment_tracking_urls }}'>?</a>
<a href='{{ order.order_status_url }}'>?</a>
<a href='{{ customer.order.fulfillment.tracking_url }}'>?</a>
<a href='{{ customer.order.fulfillment.tracking_urls }}'>?</a>

 

0 Likes
Highlighted
New Member
2 0 0

Did you ever figure this out? I'm trying to do the same and cannot get it to work.



 

0 Likes
Shopify Expert
2193 371 460

Hi,

You need to try something like bellow:

 

<div>
{% if line_item.fulfillment.tracking_url %}
<a href="{{ line_item.fulfillment.tracking_url }}">
{{ 'customer.order.track_shipment' | t }}
</a>
{% endif %}
<div>
{{ line_item.fulfillment.tracking_company }}
{% if line_item.fulfillment.tracking_number %} #{{ line_item.fulfillment.tracking_number }} {% endif %}
</div>
</div>

Let me know if you can't.

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes