Files
santeh-ray/templates/orders/success.html
Azimkin ad962d946b
All checks were successful
Build and Push Docker Image / build (push) Successful in 43s
feat: update order payment methods and refine profile edit functionality
- 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
2026-05-30 12:25:19 +02:00

54 lines
2.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "_layouts/base.html" %}
{% load static %}
{% block title %}Заказ оформлен{% endblock %}
{% block add_css %}
<link rel="stylesheet" href="{% static "css/cart.css" %}">
{% endblock %}
{% block content %}
{% include "_fragments/header.html" %}
{% include '_fragments/breadcrumbs.html' with url_1='/' text_1='Главная' url_2='/orders/cart/' text_2='Корзина' url_3=request.path text_3='Заказ оформлен' %}
<main class="container cart-page">
<section class="order-success">
<p class="order-success__eyebrow">Заказ оформлен</p>
<h1>Заказ №{{ order.id }} оформлен</h1>
<p class="order-success__lead">
Мы отправили письмо с деталями заказа на {{ order.email }}. Менеджер свяжется с вами при необходимости.
</p>
<div class="order-success__summary">
<div>
<span>Получатель</span>
<strong>{{ order.customer_name }}</strong>
</div>
<div>
<span>Способ доставки</span>
<strong>{{ order.get_delivery_method_display }}</strong>
</div>
<div>
<span>Способ оплаты</span>
<strong>{{ order.get_payment_method_display }}</strong>
</div>
<div>
<span>Итого</span>
<strong>{{ order.total }} руб.</strong>
</div>
</div>
<div class="order-success__items">
{% for item in order.items.all %}
<p><span>{{ item.item_name }} × {{ item.quantity }}</span><strong>{{ item.line_total }} руб.</strong></p>
{% endfor %}
</div>
<a class="order-success__link" href="/catalog/">Вернуться в каталог</a>
</section>
</main>
{% include "_fragments/footer.html" %}
{% endblock %}