Include fulfillment.tracking_url in customer/order.liquid page

Solved

Dear all,

 

i hope you can help me with this one. We are trying to add the fulfillment.tracking_url to our customer/oder.liquid page, though it does not work by adding just a reference to the fufillment object like {{ fulfillment.tracking_url  }}, i.e.:

 

<td>
<a href="{{ fulfillment.item_count }}">See package tracking</a>
</td>

does anybody knows, how could i retrieve that information on the order.liquid page? 

 

Thanks!!

We help eCommerce people achieve their Goals! Visit us on: Webmefy.com
0 Likes
Highlighted

Success.

In case someone is interested this was the solution:

 

{% for line_item in order.line_items %}
{% if line_item.fulfillment.tracking_numbers %}
<table class="account-order">
<tbody>
<tr class="order-footer-item">
<td>
<b> ..... </b> {{ line_item.fulfillment.tracking_number }} </td>
</tr>
<tr class="order-footer-item">
<td>
<a href="{{ line_item.fulfillment.tracking_url }}" target="_blank"> .......</a>
</td>
</tr>
{% else %}
<tr class="order-footer-item">
<td>
</td>
</tr>
{% break %}
{% endif %}
</tbody>
</table>
</div>
{% endfor %} 
We help eCommerce people achieve their Goals! Visit us on: Webmefy.com
0 Likes