Add a tag to an order inside Customer Account

Hello,

I would like to know if it is possible to add a tag to an order INSIDE Customer Accounts. Basically, when the client opens his account and checks the order, to see the tag.

Alternatively, maybe it is possible to add a line item property?

I don’t think there’s a way to add a tag to an order from the Customers admin page, but you can show order tags to the customer when they’re logged into their customer area.

Something like this should do it:

{% for order in customer.orders %}
  {{ order.tags }}
  {{ order.note }}
{% endfor %}

Reference: https://shopify.dev/docs/api/liquid/objects/customer

You likely already have that order loop, so just find that code in your theme editor and add the tags or order note. It’s probably in a file something like customer.liquid or account.liquid in your templates folder.

If you’re talking about updating the actual order, I would update the order or the note, then make it show in the theme. If you want tags / notes on orders updated automatically based on order conditions, you can use Order Automator to do that.

You can also access line item properties to show in the theme if that suits you better: https://shopify.dev/docs/api/liquid/objects/line_item

Thanks, Joe! I’ll have a look at this and come back with an update.