Skip to content

Latest commit

 

History

History
 
 

reissue-single-use-discount-codes-after-order-cancellation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Reissue single-use discount codes after order cancellation

Tags: Cancel, Discounts, Orders

This task watches for cancellations of orders that have either a single-use discount code, or a discount code that can only be used once per customer. When such an order is found, this task creates a new copy of the discount exclusively for the related customer, using a new discount code, and emails it to the customer.

Default options

{
  "ignore_discount_codes_containing_this_text": null,
  "email_subject__required": "We've issued you a new discount code",
  "email_body__required_multiline": "Hello,\n\nNow that order {{ order.name }} has been cancelled, we wanted to make sure you have another chance to use your discount.\n\nYour new discount code: REISSUED_DISCOUNT_CODE\n\nThanks,\n{{ shop.name }}",
  "email_bcc__email": null
}

Learn about task options in Mechanic

Subscriptions

shopify/orders/cancelled

Learn about event subscriptions in Mechanic

Documentation

This task watches for cancellations of orders that have either a single-use discount code, or a discount code that can only be used once per customer. When such an order is found, this task creates a new copy of the discount exclusively for the related customer, using a new discount code, and emails it to the customer.

This task only supports basic discounts, having up to 250 products or collections (if any). Shipping discounts and buy-one-get-one discounts are not supported.

Installing this task

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.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!