Skip to content

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

Improve text e-mail about order confirmation

Anna Siwik4c45cdb10e23
diff --git a/templates/templated_email/html/order/confirm_order.html b/templates/templated_email/html/order/confirm_order.html
index 97e23e0e19..21de3d2e26 100644
--- a/templates/templated_email/html/order/confirm_order.html
+++ b/templates/templated_email/html/order/confirm_order.html
@@ -21,11 +21,11 @@
<tr>
<td>
{% trans "Billing address" context "Order confirmation e-mail billing address" %}
- <br>{{ order.billing_address }}
+ <br>{% format_address order.billing_address %}
</td>
<td>
{% trans "Shipping address" context "Order confirmation e-mail shipping address" %}
- <br>{{ order.shipping_address }}
+ <br>{% format_address order.shipping_address %}
</td>
</tr>
<tr>
diff --git a/templates/templated_email/order/confirm_order.email b/templates/templated_email/order/confirm_order.email
index 4e701bd224..c43ea03ec5 100644
--- a/templates/templated_email/order/confirm_order.email
+++ b/templates/templated_email/order/confirm_order.email
@@ -1,4 +1,5 @@
{% load i18n %}
+{% load gross from prices_i18n %}
{% block subject %}
{% trans "Order details" context "Order confirmation email subject" %}
@@ -8,9 +9,23 @@
{% blocktrans context "Order confirmation email text" %}
Hi!
-Thank you for your order. To see your payment details please visit:
-{{ url }}
+Thank you for your order. Below is the list of ordered products. To see your payment details please visit:
+{{ url }}{% endblocktrans %}
+{% for group in order.groups.all %}{% for line in group.lines.all %}
+{{ line.quantity }} x {{ line.product_name }}, {% gross line.get_total %}
+{% endfor %}{% endfor %}
+{% trans "Order summary" context "Order confirmation email" %}:
+{% trans "Subtotal" context "Order confirmation email" %}: {% gross order.get_total %}
+{% trans "Shipping" context "Order confirmation email" %}: {% gross order.shipping_price %}
+{% trans "Total" context "Order confirmation email" %}: {% gross order.get_total %}
+{% trans "Billing address" context "Order confirmation e-mail billing address" %}
+{{ order.billing_address }}
+
+{% trans "Shipping address" context "Order confirmation e-mail shipping address" %}
+{{ order.shipping_address }}
+
+{% blocktrans context "Order confirmation email text" %}
This is an automatically generated email, please do not reply.
Sincerely,