Skip to content

Latest commit

 

History

History

auto-tag-orders-with-their-line-item-properties

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Auto-tag orders with their line item properties

Tags: Auto-Tag, Line Item Properties, Orders

Use this task to tag incoming orders with all of the line item properties found on the order. Optionally, configure a list of property names to be included, or a list of property names to be excluded. This task can also be run manually to scan and tag historical orders.

Default options

{
  "property_name_and_value_separator__required": "_",
  "include_only_these_property_names__array": [],
  "exclude_these_property_names__array": []
}

Learn about task options in Mechanic

Subscriptions

shopify/orders/create
mechanic/user/trigger

Learn about event subscriptions in Mechanic

Documentation

Use this task to tag incoming orders with all of the line item properties found on the order. Optionally, configure a list of property names to be included, or a list of property names to be excluded. This task can also be run manually to scan and tag historical orders.

Change the "Property name and value separator" to change the way tags are built. Using a dash results in "Name-Value", an underscore results in "Name_Value", and a colon with a space yields "Name: Value". The task preview conveniently shows what a sample tag combo will look like.

Notes:

  • Configuring any property names to include means the task will ignore the property names to exclude setting entirely.
  • Because line item properties cannot change after order creation, this task does not remove any tags from orders.
  • Shopify limits order tags to 40 characters in length. If a tag combo exceeds this limit it will not be set on the order.

Installing this task

Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!