Re-structure some querying on cart and order pages to reduce load

This commit is contained in:
Raphael Michel
2020-12-13 16:29:17 +01:00
parent 5308099d84
commit 571fef4ed8
7 changed files with 48 additions and 39 deletions

View File

@@ -313,7 +313,7 @@
{% endif %}
<div class="clearfix"></div>
</div>
{% if order.user_change_allowed or order.user_cancel_allowed %}
{% if user_change_allowed or user_cancel_allowed %}
<div class="panel panel-primary panel-cancellation">
<div class="panel-heading">
<h3 class="panel-title">
@@ -321,7 +321,7 @@
</h3>
</div>
<ul class="list-group">
{% if order.user_change_allowed %}
{% if user_change_allowed %}
<li class="list-group-item">
<p>
{% blocktrans trimmed %}
@@ -335,7 +335,7 @@
</a>
</li>
{% endif %}
{% if order.user_cancel_allowed %}
{% if user_cancel_allowed %}
<li class="list-group-item">
{% if order.status == "p" and order.total != 0 %}
{% if order.user_cancel_fee >= order.total %}