Skip to content

When a product is restored ​

Sends a notification when a soft-deleted Commerce Product is restored from the trash.

Requires Craft Commerce

Only available when the Craft Commerce plugin is installed.

Product Type Filters ​

Choose which Commerce product types should fire this notification. Only products of the selected types will trigger it.

Selection is required

Check at least one product type, or the notification won't fire.

Field Conditions ​

Field conditions restrict the notification based on the element's content, using Craft's native conditions framework. Build a rule set against the element's attributes and field values, and the notification will be sent only when every rule matches.

Must match all conditions

The condition builder evaluates every rule with AND semantics, so each rule must pass for the notification to be sent.

Twig variables ​

The object variable (and its product alias) is the restored Product.

twig
"{{ product.title }}" was restored from the trash.

Examples ​

Notify the merch team of a restore

twig
{{ product.title }} is back online.

- Type: {{ product.type.name }}
- Restored by: {{ currentUser.fullName }}