feat: update order payment methods and refine profile edit functionality
All checks were successful
Build and Push Docker Image / build (push) Successful in 43s
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
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<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>
|
||||
<h1 style="margin:0 0 16px;font-size:28px;">Заказ №{{ order.id }} оформлен</h1>
|
||||
<p>Здравствуйте, {{ order.customer_name }}!</p>
|
||||
<p>Ваш заказ успешно оформлен и оплачен.</p>
|
||||
<p>Ваш заказ успешно оформлен.</p>
|
||||
|
||||
<table style="width:100%;border-collapse:collapse;margin:24px 0;">
|
||||
<thead>
|
||||
@@ -26,7 +26,7 @@
|
||||
<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 style="font-size:18px;"><strong>Итого:</strong> {{ order.total }} руб.</p>
|
||||
|
||||
<p><strong>Доставка:</strong> {{ order.get_delivery_method_display }}</p>
|
||||
{% if order.region or order.address %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Здравствуйте, {{ order.customer_name }}!
|
||||
|
||||
Ваш заказ №{{ order.id }} успешно оплачен.
|
||||
Ваш заказ №{{ order.id }} успешно оформлен.
|
||||
|
||||
Состав заказа:
|
||||
{% for item in order.items.all %}
|
||||
@@ -11,7 +11,7 @@
|
||||
Скидка: {{ order.discount_total }} руб.
|
||||
Доставка: {{ order.delivery_total }} руб.
|
||||
Подъём на этаж: {{ order.floor_lift_total }} руб.
|
||||
Итого к оплате: {{ order.total }} руб.
|
||||
Итого: {{ order.total }} руб.
|
||||
|
||||
Доставка: {{ order.get_delivery_method_display }}
|
||||
{% if order.region or order.address %}Адрес: {{ order.region }}{% if order.address %}, {{ order.address }}{% endif %}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{{ site_name }}: заказ №{{ order.id }} оплачен
|
||||
{{ site_name }}: заказ №{{ order.id }} оформлен
|
||||
|
||||
Reference in New Issue
Block a user