Tags: Auto-Tag, Schedule, Untag
Use this this task to monitor for the addition of a specific product tag, and to schedule the product to be untagged a configurable number of days later. Useful for temporarily adding a product to a collection, or qualifying the product for some other temporary functionality.
- View in the task library: tasks.mechanic.dev/auto-remove-a-product-tag-x-days-after-its-added
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"tag_to_monitor__required": null,
"days_to_wait_before_untagging__number_required": null
}
Learn about task options in Mechanic
shopify/products/update
user/task/untag_product
Learn about event subscriptions in Mechanic
Use this this task to monitor for the addition of a specific product tag, and to schedule the product to be untagged a configurable number of days later. Useful for temporarily adding a product to a collection, or qualifying the product for some other temporary functionality.
As soon as that tag is detected, the task will add a second tag, indicating that the product is scheduled to be untagged. (For example, if the task is configured to watch for the tag "Approved", the task will add the tag "Approved - will be auto-removed by Mechanic".) The task will then schedule a followup event for the future, according to the configured number of days to wait. At that time, the task will remove both tags.
Important note: To prevent the task from untagging the product later, manually remove the task's additional tag (i.e. the "will be auto-removed by Mechanic" tag).
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.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!