Skip to content

Commit

Permalink
fix: canceled order mail template changed
Browse files Browse the repository at this point in the history
  • Loading branch information
codedsun committed Dec 6, 2019
1 parent e8b367f commit ade1b09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 0 additions & 3 deletions app/api/helpers/mail.py
Expand Up @@ -369,12 +369,9 @@ def send_order_cancel_email(order):
subject=MAILS[TICKET_CANCELLED]['subject'].format(
event_name=order.event.name,
invoice_id=order.invoice_number,
frontend_url=get_settings()['frontend_url']
),
html=MAILS[TICKET_CANCELLED]['message'].format(
event_name=order.event.name,
order_url=make_frontend_url('/orders/{identifier}'.format(identifier=order.identifier)),
cancel_note=order.cancel_note,
frontend_url=get_settings()['frontend_url']
)
)
11 changes: 6 additions & 5 deletions app/api/helpers/system_mails.py
Expand Up @@ -186,11 +186,12 @@
'recipient': 'User',
'subject': u'Your order for {event_name} has been cancelled ({invoice_id})',
'message': (
u"Hi,Your order for {event_name} has been cancelled has been cancelled by the organizer"
u"<br/>Please contact the organizer for more info" +
u"<br/>Message from the organizer: {cancel_note}"
u"<br/> <a href='{order_url}'>Click here</a> to view/download the invoice."
u"<br/>Login to manage the orders at {frontend_url} </em>"
u"Hello,"
u"<br/>your order for {event_name} has been cancelled by the organizer."
u"<br/>Please contact the organizer for more info." +
u"<br/>To manage orders please login to {frontend_url} and visit \"My Tickets\"."
u"<br/>Best regards,"
u"<br/>Eventyay Team"
)
},
EVENT_EXPORTED: {
Expand Down

0 comments on commit ade1b09

Please sign in to comment.