Catalog update email
Get an email alert whenever a product is created, updated, or deleted. This makes it easy to keep tabs on updates to your catalog – useful if you need a precise audit trail.
Try this taskWhen it runs
- Occurs whenever a product is created
- Occurs whenever a product is deleted
- Occurs whenever a product is updated, ordered, or variants are added, removed or updated
What you choose
Recipient email
Task code and subscriptions
You can edit the Liquid code after installing this task. View on GitHub or ask a question in the Mechanic Slack community.
Subscriptions
shopify/products/create
shopify/products/delete
shopify/products/update
How task subscriptions work
Option types and flags
- Recipient email (required, email)
Task code
{% assign verb = event.topic | split: "/" | last %}
{% capture email_subject %}Product {{ product.id }} {{ verb }}d{% endcapture %}
{% capture email_body %}
Hello,
A product was just {{ verb }}d. Here's what we know:
{{ product | json }}
Thanks,
-Mechanic (for {{ shop.name }})
{% endcapture %}
{
"action": {
"type": "email",
"options": {
"to": {{ options.recipient_email__required_email | json }},
"subject": {{ email_subject | json }},
"body": {{ email_body | strip | newline_to_br | json }},
"from_display_name": {{ shop.name | json }}
}
}
}
Mechanic Liquid reference