Tag Shopify Orders by Line Item Properties

5 min setup
No coding required
Runs automatically

Easily organize custom orders by tagging them based on specific line item properties. Perfect for products that need personalization, such as engraving or add-ons, this MESA workflow template automatically tags orders with unique requirements. Grouping these orders improves visibility, streamlines fulfillment, and reduces the risk of errors, allowing you to efficiently manage custom inventory and fulfill orders accurately.

Shopify logo icon
Runs on every new Shopify order
Loop goes through each line item in the order
Loop checks each property's name and value
Shopify logo icon
Shopify tags the order with your tag

How it works

4 steps to tag orders containing products with specific line item properties

Shopify logo icon

Runs on every new Shopify order

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This monitors every new order to detect products with custom properties like engraving text, gift messages, or special options that require different handling.

When a customer completes checkout, this trigger captures the order, including every line item and its properties.

Loop goes through each line item in the order

App connector: Loop • Time to complete: 0 minutes (Auto-configured)
Why this matters: Properties belong to individual line items, so each product has to be checked on its own.

The first Loop step takes each product in the order one at a time. There's nothing to set up here: it passes each line item, with its properties, to the next step.

Loop checks each property's name and value

App connector: Loop • Time to complete: 2 minutes
Why this matters: Matching on both name and value lets you tag a specific choice, like Gift Wrap: Premium, instead of every order with that option.

A second Loop step goes through the properties on that line item. Line item properties are name and value pairs Shopify stores with a product, like "Engraving: Happy Birthday" or "Gift Wrap: Yes". Enter the property name in "The name of the line item variable?" and the value to match in "The value for the line item variable?". Both must match exactly, including capitalization. Only properties that match both reach the tag step.

Shopify logo icon

Shopify tags the order with your tag

App connector: Shopify • Time to complete: 1 minute
Why this matters: This helps you quickly identify orders needing special attention, separate fulfillment, or expedited processing.

Add Order Tags adds your tag to the order when a matching property is found. Set it in "The tag you want to use?" and pick a name your team will recognize, like "Engraving" or "Gift Wrap". If several line items match, the tag is still added only once.

Trusted by 1,000+ merchants
Logo: Rothy's Logo: Adidas Logo: Allure Logo: GQ Logo: DraftKings Logo: Chubbies Logo: Made In Cookware Logo: MUD/WTR

Ready to tag orders containing products with specific line item properties

Get setup in 5 minutes.

Use this template →

FAQs

Will this work with line item properties from any Shopify app or custom code?

Yes, as long as the customizations are stored as Shopify line item properties (not metafields or order notes), this workflow can detect and tag based on them. This includes properties from apps like Infinite Options, Product Customizer, or custom theme code that adds properties to cart items.

What happens if a customer orders multiple products with the same property but different values?

The workflow checks each line item's properties separately, so if one item has "Engraving: Yes" and another has "Engraving: No," only the "Yes" item matches (if "Yes" is your value). Tags apply to the whole order, so the order is tagged when any one item matches.

Can I check for the presence of a property regardless of its value?

Not as installed, since the property Loop's condition checks both the name and the value. To tag any order that has the property, edit the second Loop step and remove the value condition.

Personalize this template

Customize this workflow even further:

Tag with the actual property value
Instead of applying a static tag like "custom", use the actual value from the line item property as the tag. For example, if the property is "Priority" with value "Rush", tag the order with "Rush".
Check multiple properties with different tags
Add another property Loop and tag step inside the line item loop for each property name you want to check, each with its own tag. This lets a single workflow handle all your custom product scenarios.
Notify fulfillment team about custom orders
Add a Slack or email notification after tagging to alert your production or fulfillment team immediately when a custom order arrives. This reduces turnaround time for personalized products and prevents customization details from being overlooked.
Log custom orders to a tracking spreadsheet
Add a Google Sheets step after tagging to create a spreadsheet row. This builds a searchable database of all custom orders for quality control, production planning, or analyzing which customizations are most popular with customers.

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

tag orders containing products with specific line item properties

5 min setup • Fully supported if you need help