Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Vineeth 71 posts 291 karma points
    Feb 12, 2020 @ 12:35

    Order cancel mail sent in Teacommerce

    How can we set a cancellation mail and send when an order is canceled on tea commerce. And secondly what does "revert finalize" means in orders

  • Matt Brailsford 4124 posts 22221 karma points MVP 9x c-trib
    Feb 12, 2020 @ 13:33
    Matt Brailsford

    Hi Vineeth,

    Revert finalized means that if you delete an order it will attempt to restock the order items + undo any discount code / gift card usages.

    To send an order canceled email you'd need to implement this yourself. You could setup the email in the emails section, then hook into the events system to listen for an order being cancelled (see docs on events here, then in your handle use EmailTemplateService.Instance.Get(storeId, templateId) to retrieve your template and then call the template template.Send(order); method to trigger sending the email.

    Hope this helps


  • Vineeth 71 posts 291 karma points
    Feb 12, 2020 @ 14:17

    Perfect :) Thanks Matt :D

Please Sign in or register to post replies

Write your reply to: