How can i display fulfilment status when customer inputs order ID?

Fahaad
Tourist
7 0 0

Hi, i want to make a separate page where a user enters an order id, it shows them only fulfilment status. Thanks 

0 Likes
gina-gregory
Shopify Expert
710 48 176

You could possibly build something custom using JavaScript with some JSON holding the order info:

<script id="orders-json">{
"orders": [
{% for order in customer.orders %}
{
  "id": {{ order.number | json }},
  "fulfillment_status": {{ order.fulfillment_status | json }}
}
{% unless forloop.last %},{% endunless %}
]
}
{% endfor %}

 

If it's likely customer have lots of orders, you'll have to work paginated results in there before searching the data.