New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: canceled order mail template changed #6643
Conversation
5450574
to
ade1b09
Compare
@prateekj117 @iamareebjamal Review if possible! |
Codecov Report
@@ Coverage Diff @@
## development #6643 +/- ##
===============================================
- Coverage 65.35% 65.34% -0.02%
===============================================
Files 298 298
Lines 15240 15243 +3
===============================================
Hits 9960 9960
- Misses 5280 5283 +3
Continue to review full report at Codecov.
|
app/api/helpers/system_mails.py
Outdated
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u"<br/>Eventyay Team" | |
u"<br/>Eventyay Team" |
See the repository name
@@ -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'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this field utilized in the subject, I didn't see it used anywhere in the text
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got it!
ade1b09
to
b5c9f55
Compare
b5c9f55
to
f4c3754
Compare
f4c3754
to
16348c1
Compare
Review this! |
@@ -363,18 +363,21 @@ def send_email_to_attendees(order, purchaser_id, attachments=None): | |||
|
|||
|
|||
def send_order_cancel_email(order): | |||
cancel_msg = '' | |||
if order.cancel_note: | |||
cancel_msg = u"<br/>Message from the organizer: {cancel_note}".format(cancel_note=order.cancel_note) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the cancel_note is not none then Message from the organizer
should go in the email or not? I tried this way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the way of doing this wrong or something else you wanted to say?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK for now
I have updated the branch, if it's okay. Please merge. Thanks |
Fixes #6642
Short description of what this resolves:
fix: canceled order mail template changed
Checklist
development
branch.