Catalog update email with Mechanic.

Mechanic is the one-tool-does-it-all automation app for Shopify. :)

Catalog update email

by Isaac Bowen (team@usemechanic.com)

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 when a product is created, when a product is deleted, and when a product is updated. Configuration includes recipient email.

15-day free trial – unlimited tasks

Developer details

Events
when a product is created (shopify/products/create)
when a product is deleted (shopify/products/delete)
when a product is updated (shopify/products/update)
Options
recipient email (required, email)
Script
{% 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 }}
    }
  }
}
Yep, that’s just Liquid! If this is interesting to you, check out our documentation! Mechanic is hugely developer-friendly. :)