All checks were successful
Build and Push Docker Image / build (push) Successful in 50s
- Added `Order` and `OrderItem` models with migrations for managing orders and their details - Created `CheckoutForm` for validating order data and customer information - Built templates for order confirmation, checkout success, and emails (HTML and plain text) - Added logic for email notifications upon successful order placement - Enhanced shopping cart template with checkout panel integration - Updated styles and JavaScript for streamlined checkout UX - Refactored cart view to support item summaries and final totals during checkout
26 lines
1000 B
Plaintext
26 lines
1000 B
Plaintext
Здравствуйте, {{ order.customer_name }}!
|
||
|
||
Ваш заказ №{{ order.id }} успешно оплачен.
|
||
|
||
Состав заказа:
|
||
{% for item in order.items.all %}
|
||
- {{ item.item_name }} — {{ item.quantity }} шт. × {{ item.item_price }} руб. = {{ item.line_total }} руб.
|
||
{% endfor %}
|
||
|
||
Товары: {{ order.products_total }} руб.
|
||
Скидка: {{ order.discount_total }} руб.
|
||
Доставка: {{ order.delivery_total }} руб.
|
||
Подъём на этаж: {{ order.floor_lift_total }} руб.
|
||
Итого к оплате: {{ order.total }} руб.
|
||
|
||
Доставка: {{ order.get_delivery_method_display }}
|
||
{% if order.region or order.address %}Адрес: {{ order.region }}{% if order.address %}, {{ order.address }}{% endif %}
|
||
{% endif %}Оплата: {{ order.get_payment_method_display }}
|
||
|
||
Контакты:
|
||
ФИО: {{ order.customer_name }}
|
||
Телефон: {{ order.phone }}
|
||
E-mail: {{ order.email }}
|
||
|
||
Спасибо за покупку в {{ site_name }}.
|