Hi community!
We are using an app to have custom status (w3) for orders in order to map a production process.
We now want to show these statuses from within the account page. Seems the way to do this is through checking if the tags are there and then show it. Since every time there is a change in status a new tag is added, sometimes this means there is 2-3 or more statuses present within an order.
Managed to show a message is a specific tag is present but then if there are more than 1, then more than one messages are shown. Any suggestions on how to do this better?
{%- if order.fulfillment_status == 'fulfilled' -%}
{{ order.fulfillment_status_label }}
{% else %}
{% for tag in order.tags %}
{% if tag contains 'w3os:Completed' %}
Completed
{% elsif tag contains 'w3os:Quality Control' %}
In Quality Control
{% elsif tag contains 'w3os:Sewing' %}
Being Sewn
{% elsif tag contains 'w3os:Sublimation' %}
Being Sublimated
{% elsif tag contains 'w3os:Started Production' %}
Production Started
{% elsif tag contains 'w3os:AFSP' %}
AFSP
{% elsif tag contains 'w3os:Team Store' %}
Waiting for Team Store to Close
{% endif %}
{% endfor %}
{%- endif -%}