Hi, I am wanting to amend my email for a cancellation order - there a few commands within the code and I am unfortunately not a guru, I have a basic understanding.
Customers have the option to do an EFT - which can cause them to not end up paying or hold onto their carts until a sale comes in, we have added the mechanic app to our store to automatically cancel orders after 5 days. That being said, our cancellation email is not correct when notifying the customer and we’d like to change it but due to too many commands - I’m not sure how to test the email message accordingly.
It sounds like you need to make changes to the code/ Liquid of the order cancellation email but the issue is that since there’s logic that triggers the cancellation of the order (and the sending of the email) it’s difficult to test the changes you’ve made to the email? Is this correct?
If you’re just looking to test the changes you’re making to the code/Liquid of the email there is an option to send a test email on the admin:
Depending on the payment gateway you’re using you could also create a test order and then cancel it to test how the email sends when it is cancelled regularly - you should be seeing the same email appear. It might be a bit more complex to test that the Mechanic app is working as expected - you should reach out to their support team for advice on that part.
Thank you for getting back to me, my apologies for my delayed response.
With the triggers in the code, if the order is cancelled via mechanic or by us manually due to non-payment. Would I need to add in another trigger as a cancellation to the code?
So the trigger would be:
{% when ‘cancelled’ %}
Order {{ name }} has been cancelled due to non-payment.