Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 2.41 KB

File metadata and controls

53 lines (35 loc) · 2.41 KB

Auto-tag customers by purchased SKUs

Tags: Auto-Tag, Customers, SKU

This task keeps customers tagged with the SKUs of the products they've purchased, optionally ignoring product purchases that have been refunded. Add a tag prefix to make SKU tags easy to distinguish from your other customer tags.

Default options

{
  "tag_prefix": "",
  "ignore_refunded_purchases__boolean": true,
  "enable_running_manually__boolean": null,
  "test_mode__boolean": true
}

Learn about task options in Mechanic

Subscriptions

shopify/orders/paid
{% if options.ignore_refunded_purchases__boolean %}
  shopify/refunds/create
{% endif %}
mechanic/user/trigger
mechanic/shopify/bulk_operation

Learn about event subscriptions in Mechanic

Documentation

This task keeps customers tagged with the SKUs of the products they've purchased, optionally ignoring product purchases that have been refunded. Add a tag prefix to make SKU tags easy to distinguish from your other customer tags.

This task also records all purchased SKUs in a JSON metafield called "mechanic.purchased_skus", associated with the customer. For customers who have purchased more products than would fit inside Shopify's maximum tag limit of 250, this metafield provides a way for you to access all purchased SKUs.

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!