Catalog update email, with Mechanic.

Mechanic is a development and ecommerce automation platform for Shopify. :)

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.

Runs Occurs whenever a product is created, Occurs whenever a product is deleted, and Occurs whenever a product is updated, or whenever a product is ordered, or whenever a variant is added, removed, or updated. Configuration includes recipient email.

15-day free trial – unlimited tasks

Developer details

Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Shopifolks, everybody.

That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.

(By the way, have you seen our documentation? Have you joined the Slack community?)

Open source
View on GitHub to contribute to this task
Subscriptions
shopify/products/create
shopify/products/delete
shopify/products/update
Tasks use subscriptions to sign up for specific kinds of events. Learn more
Options
recipient email (required, email)
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 }}
    }
  }
}
Task code is written in Mechanic Liquid, an extension of open-source Liquid enhanced for automation. Learn more