Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix displaying order details
Marek Brzóska1ee2f4097363
diff --git a/checkout/templates/checkout/summary.html b/checkout/templates/checkout/summary.htmlindex 9aa6a44452..3512bd7598 100644--- a/checkout/templates/checkout/summary.html+++ b/checkout/templates/checkout/summary.html@@ -28,10 +28,12 @@{% for group in checkout.groups %}{% for item in group %}<tr>+ <td>{{ item.product }}</td>+ <td>{% gross item.get_price_per_item %}</td>+ <td>{{ item.quantity }}</td>+ <td>{% gross item.get_total %}</td>{% if forloop.first %}- <td>{{ item.product }}</td><td>{% gross item.get_price_per_item %}</td><td>{{ item.quantity }}</td><td>{% gross item.get_total %}</td><td rowspan="{{ group.items.all|length }}">{% gross group.get_delivery_total %}</td>- {% else %}- <td>{{ item.product }}</td><td>{% gross item.get_price_per_item %}</td><td>{{ item.quantity }}</td><td>{% gross item.get_total %}</td>+ <td rowspan="{{ group|length }}">{% gross group.get_delivery_total %}</td>{% endif %}</tr>{% endfor %}diff --git a/order/templates/order/details.html b/order/templates/order/details.htmlindex 78bd73617b..2300b73e2a 100644--- a/order/templates/order/details.html+++ b/order/templates/order/details.html@@ -40,10 +40,12 @@{% for group in groups %}{% for item in group %}<tr>+ <td>{{ item.product }}</td>+ <td>{% gross item.get_price_per_item %}</td>+ <td>{{ item.quantity }}</td>+ <td>{% gross item.get_price_per_item %}</td>{% if forloop.first %}- <td>{{ item.product }}</td><td>{% gross item.get_price_per_item %}</td><td>{{ item.quantity }}</td><td>{% gross item.get_price_per_item %}</td><td rowspan="{{ group.items.all|length }}">{% gross group.price %}</td>- {% else %}- <td>{{ item.product }}</td><td>{% gross item.get_price_per_item %}</td><td>{{ item.quantity }}</td><td>{% gross item.get_price_per_item %}</td>+ <td colspan="{{ group|length }}">{% gross group.price %}</td>{% endif %}</tr>{% endfor %}@@ -51,7 +53,8 @@</tbody><tfoot><tr>- <td>{% trans "Total" %}</td><td colspan="4">{% gross order.get_total %}</td>+ <td>{% trans "Total" %}</td>+ <td colspan="4">{% gross order.get_total %}</td></tr></tfoot></table>