Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Do not display anything if cart is empty

akjanik53d34e6991a4
diff --git a/templates/cart/_subtotal_table.html b/templates/cart/_subtotal_table.html
index 164caf1ad3..725bbdfdb8 100644
--- a/templates/cart/_subtotal_table.html
+++ b/templates/cart/_subtotal_table.html
@@ -57,15 +57,17 @@
</div>
<div class="col-4">
{% spaceless %}
- <h3 class="text-right cart-total"><span>{% price_range total_with_shipping %}</span>
- {% if local_total_with_shipping %}
- <br>
- <small>
- &asymp;
- {% price_range local_total_with_shipping %}
- </small>
- {% endif %}
- </h3>
+ {% if total_with_shipping %}
+ <h3 class="text-right cart-total"><span>{% price_range total_with_shipping %}</span>
+ {% if local_total_with_shipping %}
+ <br>
+ <small>
+ &asymp;
+ {% price_range local_total_with_shipping %}
+ </small>
+ {% endif %}
+ </h3>
+ {% endif %}
{% endspaceless %}
</div>
</div>