Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Enhance order nodes displaying in storefront
dominik-zeglen11fce34045be
diff --git a/templates/order/_ordered_items_table.html b/templates/order/_ordered_items_table.htmlindex 163505ab57..1599a813da 100644--- a/templates/order/_ordered_items_table.html+++ b/templates/order/_ordered_items_table.html@@ -52,8 +52,8 @@<div class="row"><div class="col-md-6 col-9"><a class="link--clean" href="{{ item_line.product.get_absolute_url }}">- <img src="{% product_first_image item_line.product size="60x60" method="crop" %}"- srcset="{% product_first_image item_line.product size="60x60" method="crop" %} 1x, {% product_first_image item_line.product size="120x120" method="crop" %} 2x"+ <img src="{% product_first_image item_line.product size="60x60" method="crop" %}"+ srcset="{% product_first_image item_line.product size="60x60" method="crop" %} 1x, {% product_first_image item_line.product size="120x120" method="crop" %} 2x"class="float-left"><p>{{ item_line.product }}<br><small>{{ item_line.product_name }}</small></p>diff --git a/templates/order/details.html b/templates/order/details.htmlindex eda82001cc..14fbdce409 100644--- a/templates/order/details.html+++ b/templates/order/details.html@@ -2,6 +2,7 @@{% load i18n %}{% load staticfiles %}+{% load bootstrap_form from bootstrap4 %}{% block title %}{% blocktrans trimmed context "Order details page title" %}@@ -49,21 +50,6 @@Order {{ order }}: {{ order_status }}{% endblocktrans %}</h2>-- {% if notes %}- <h2>{% trans "Notes" context "Order notes list" %}</h2>- {% for note in notes %}- <p>{{note.content}}</p>- {% endfor %}- {% endif %}- {% if order.status == 'open' %}- <h2>{% trans "Add a note to your order" context "Order summary add note title" %}</h2>- <form method="post">- {% csrf_token %}- {{ note_form }}- <input type="submit" value="Submit" />- </form>- {% endif %}{% if not order.is_fully_paid %}{% if order.is_pre_authorized %}<a href="{% url "order:payment" token=order.token %}" class="btn btn-link">@@ -76,6 +62,20 @@{% endif %}{% endif %}{% include "order/_ordered_items_table.html" %}+ {% if notes %}+ <h2 class="mt-5">{% trans "Notes" context "Order notes list" %}</h2>+ {% for note in notes %}+ <p>{{note.content}}</p>+ {% endfor %}+ {% endif %}+ {% if order.status == 'open' %}+ <h2>{% trans "Add a note to your order" context "Order summary add note title" %}</h2>+ <form method="post" class="form-group">+ {% csrf_token %}+ {% bootstrap_form note_form %}+ <input type="submit" value="Submit" class="btn primary" />+ </form>+ {% endif %}</div></div>{% endblock content %}