Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update order confirmation emails text

IKarbowiakb00261d841d6
diff --git a/templates/templated_email/order/confirm_order.email b/templates/templated_email/order/confirm_order.email
index be7d834694..784521f3be 100644
--- a/templates/templated_email/order/confirm_order.email
+++ b/templates/templated_email/order/confirm_order.email
@@ -9,8 +9,14 @@
{% block plain %}
{% include 'templated_email/shared/_header.email' %}
{% blocktrans context "Order confirmation e-mail text" %}
-Thank you for your order. Below is the list of ordered products. To see your payment details please visit:
-{{ order_details_url }}{% endblocktrans %}
+Thank you for your order. Below is the list of ordered products.
+{% endblocktrans %}
+{% if order_details_url %}
+{% blocktrans context "Order confirmation e-mail payment details" %}
+To see your payment details please visit:
+{{ order_details_url }}
+{% endblocktrans %}
+{% endif %}
{% for line in order %}
{{ line.quantity }} x {{ line }}, {% price line.get_total display_gross=order.display_gross_prices html=False %}
{% endfor %}
diff --git a/templates/templated_email/order/staff_confirm_order.email b/templates/templated_email/order/staff_confirm_order.email
index 0d9dc01fda..4f6685a862 100644
--- a/templates/templated_email/order/staff_confirm_order.email
+++ b/templates/templated_email/order/staff_confirm_order.email
@@ -9,8 +9,14 @@
{% block plain %}
{% include 'templated_email/shared/_header.email' %}
{% blocktrans context "Order confirmation staff e-mail text" %}
-Below is the list of ordered products. To see payment details please visit:
-{{ order_details_url }}{% endblocktrans %}
+Below is the list of ordered products.
+{% endblocktrans %}
+{% if order_details_url %}
+{% blocktrans context "Order confirmation e-mail payment details" %}
+To see your payment details please visit:
+{{ order_details_url }}
+{% endblocktrans %}
+{% endif %}
{% for line in order %}
{{ line.quantity }} x {{ line }}, {% price line.get_total display_gross=order.display_gross_prices html=False %}
{% endfor %}