Skip to content

Commit

Permalink
fix: use support email address from configurations(settings) (#3127)
Browse files Browse the repository at this point in the history
  • Loading branch information
mudassir-hafeez authored Sep 9, 2024
1 parent 11c7936 commit 2e9be10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions ecommerce/mail_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def send_ecommerce_order_receipt(order, cyber_source_provided_email=None):
"vat_id": purchaser.get("vat_id"),
},
"enable_taxes_display": bool(order["tax_rate"]),
"email_support": settings.EMAIL_SUPPORT,
},
),
)
Expand Down
1 change: 1 addition & 0 deletions ecommerce/mail_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def test_send_ecommerce_order_receipt(mocker, receipt_data, settings):
"vat_id": "AT12349876",
},
"enable_taxes_display": False,
"email_support": settings.EMAIL_SUPPORT,
},
)
patched_mail_api.messages_for_recipients.assert_called_once_with(
Expand Down
4 changes: 2 additions & 2 deletions mail/templates/product_order_receipt/body.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<br />
{% endif %}
Support:
<a href="mailto:[email protected]">
[email protected]
<a href="mailto:{{ email_support }}">
{{ email_support }}
</a>
<br />
</p>
Expand Down

0 comments on commit 2e9be10

Please sign in to comment.