Shopify Check Order Lines Tags V2

This action evaluates the tags on each line item of a Shopify order, determining how many line items contain a specified tag (excluding an optional ignore tag), and returning summary metrics on inclusions.


Inputs

NameTypeDescription
OrderObjectThe full Shopify order object.
TagStringThe tag to check for on each line item’s array.
Tag To IgnoreString(Optional) A tag that, if present alongside Tag, will exclude that line item from counting. Leave empty to ignore.
Case SensitiveBooleanWhether tag comparisons should be case-sensitive (true) or normalized to lowercase (false).

Outputs

NameTypeDescription
numberOfOrderLinesTagsNumberThe count of line items that have tags.
numberOfIncludeTagsNumberThe count of line items whose tags include Tag and do not include Tag To Ignore (if specified).
includesAtLeastOneBooleantrue if at least one line item includes Tag (and does not include Tag To Ignore, if provided).
includesAllBooleantrue if all line items with a tags array include Tag (and do not include Tag To Ignore).

Notes

  • When Case Sensitive is false, both Tag and Tag To Ignore comparisons are lowercased.
  • If Tag To Ignore is an empty string or whitespace, it is ignored and will not exclude any items.
  • includesAll becomes true only when every counted line item includes the target tag and excludes the ignore tag.