All checks were successful
Build and Push Docker Image / build (push) Successful in 43s
- Replaced `Order.PaymentMethod` options with "cash" and "card" while adjusting related code and templates - Set "cash" as the default payment method for orders and checkout forms - Added profile editing functionality with `ProfileForm`, allowing users to update names - Improved feedback messages across profile and order management templates - Updated catalog to handle empty filter results with a "reset filters" option
39 lines
2.1 KiB
HTML
39 lines
2.1 KiB
HTML
<div style="max-width:640px;margin:0 auto;background:#ffffff;border:1px solid #d6dde6;padding:32px;font-family:Arial,sans-serif;color:#36213e;">
|
||
<h1 style="margin:0 0 16px;font-size:28px;">Заказ №{{ order.id }} оформлен</h1>
|
||
<p>Здравствуйте, {{ order.customer_name }}!</p>
|
||
<p>Ваш заказ успешно оформлен.</p>
|
||
|
||
<table style="width:100%;border-collapse:collapse;margin:24px 0;">
|
||
<thead>
|
||
<tr>
|
||
<th style="text-align:left;border-bottom:1px solid #d6dde6;padding:8px;">Товар</th>
|
||
<th style="text-align:right;border-bottom:1px solid #d6dde6;padding:8px;">Кол-во</th>
|
||
<th style="text-align:right;border-bottom:1px solid #d6dde6;padding:8px;">Сумма</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{% for item in order.items.all %}
|
||
<tr>
|
||
<td style="padding:8px;border-bottom:1px solid #eef2f6;">{{ item.item_name }}</td>
|
||
<td style="padding:8px;border-bottom:1px solid #eef2f6;text-align:right;">{{ item.quantity }}</td>
|
||
<td style="padding:8px;border-bottom:1px solid #eef2f6;text-align:right;">{{ item.line_total }} руб.</td>
|
||
</tr>
|
||
{% endfor %}
|
||
</tbody>
|
||
</table>
|
||
|
||
<p><strong>Товары:</strong> {{ order.products_total }} руб.</p>
|
||
<p><strong>Скидка:</strong> {{ order.discount_total }} руб.</p>
|
||
<p><strong>Доставка:</strong> {{ order.delivery_total }} руб.</p>
|
||
<p><strong>Подъём на этаж:</strong> {{ order.floor_lift_total }} руб.</p>
|
||
<p style="font-size:18px;"><strong>Итого:</strong> {{ order.total }} руб.</p>
|
||
|
||
<p><strong>Доставка:</strong> {{ order.get_delivery_method_display }}</p>
|
||
{% if order.region or order.address %}
|
||
<p><strong>Адрес:</strong> {{ order.region }}{% if order.address %}, {{ order.address }}{% endif %}</p>
|
||
{% endif %}
|
||
<p><strong>Оплата:</strong> {{ order.get_payment_method_display }}</p>
|
||
|
||
<p style="margin-top:24px;color:#554971;">Спасибо за покупку в {{ site_name }}.</p>
|
||
</div>
|