Skip to content

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

Remove simple HTML templates for order confirmation

Anna Siwik02ee5b7a8653
diff --git a/saleor/settings.py b/saleor/settings.py
index 7347570fa2..dee40afe5f 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -56,8 +56,7 @@ SENDGRID_PASSWORD = os.environ.get('SENDGRID_PASSWORD')
if not EMAIL_URL and SENDGRID_USERNAME and SENDGRID_PASSWORD:
EMAIL_URL = 'smtp://%s:%[email protected]:587/?tls=True' % (
SENDGRID_USERNAME, SENDGRID_PASSWORD)
-# email_config = dj_email_url.parse(EMAIL_URL or 'console://')
-email_config = dj_email_url.parse('smtp://feddd56f2815d5:[email protected]:2525/')
+email_config = dj_email_url.parse(EMAIL_URL or 'console://')
EMAIL_FILE_PATH = email_config['EMAIL_FILE_PATH']
EMAIL_HOST_USER = email_config['EMAIL_HOST_USER']
diff --git a/templates/templated_email/html/order/confirm_order.html b/templates/templated_email/html/order/confirm_order.html
deleted file mode 100644
index 5583d9246e..0000000000
--- a/templates/templated_email/html/order/confirm_order.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends "templated_email/html/base.html" %}
-{% load i18n_address_tags %}
-{% load i18n %}
-
-{% block content %}
-<table>
- <tbody>
- <tr>
- <td colspan="2" class="email-text table-content">
- {% blocktrans context "Order confirmation email text" %}
- <p>Hi!</p>
- <p>Thank you for your order. Below is the list of ordered products. To see your payment details please visit: <a href="{{ url }}">{{ url }}</a></p>
- {% endblocktrans %}
- </td>
- </tr>
- <tr>
- <td colspan="2">
- {% include 'templated_email/html/order/partials/_order_lines.html' with order=order %}
- </td>
- </tr>
- <tr>
- <td>
- {% trans "Billing address" context "Order confirmation e-mail billing address" %}
- <br>{% format_address order.billing_address %}
- </td>
- <td>
- {% trans "Shipping address" context "Order confirmation e-mail shipping address" %}
- <br>{% if order.shipping_address %}{% format_address order.shipping_address %}{% endif %}
- </td>
- </tr>
- <tr>
- <td colspan="2">
- {% blocktrans context "Order confirmation email text" %}
- <p>This is an automatically generated e-mail, please do not reply.</p>
- {% endblocktrans %}
- </td>
- </tr>
- </tbody>
-</table>
-{% endblock content %}
diff --git a/templates/templated_email/html/order/partials/_order_lines.html b/templates/templated_email/html/order/partials/_order_lines.html
deleted file mode 100644
index 59a3d0d845..0000000000
--- a/templates/templated_email/html/order/partials/_order_lines.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{% load gross from prices_i18n %}
-
-<table class="center-table">
- <tfoot>
- <tr>
- <td colspan="3" class="right-align">
- <p class="right-align">Subtotal</p>
- <p class="right-align">Shipping</p>
- <p class="right-align"><strong>Total</strong></p>
- </td>
- <td class="table-summary right-align">
- <p class="right-align">{% gross order.get_total html=True %}</p>
- <p class="right-align">{% gross order.shipping_price html=True %}</p>
- <p class="right-align"><strong>{% gross order.get_total html=True %}</strong></p>
- </td>
- </tr>
- </tfoot>
- <thead>
- <tr>
- <th class="table-title">Item</th>
- <th class="table-title">Quantity</th>
- <th class="table-title">Per unit</th>
- <th class="table-title">Subtotal</th>
- </tr>
- </thead>
- <tbody>
- {% for group in order.groups.all %}
- {% for line in group.lines.all %}
- <tr class="{% if forloop.last %}last-item-row{% endif %}">
- <td class="table-list-item">{{ line.product_name }}</td>
- <td class="table-list-item right-align">{{ line.quantity }}</td>
- <td class="table-list-item right-align">
- {% gross line.get_price_per_item html=True %}
- </td>
- <td class="table-list-item right-align">{% gross line.get_total %}</td>
- </tr>
- {% endfor %}
- {% endfor %}
- </tbody>
-</table>