Skip to content

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

Hide shipping from dashboard order details unless there are shippable items or shipping on the order.

[email protected]765ce730730d
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index 59aa2d9f52..2b85b45960 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -337,6 +337,7 @@
<p>
{% trans "Subtotal" context "Order subtotal" %}
</p>
+ {% if order.is_shipping_required or order.shipping_method %}
<p>
{% if order.is_draft %}
<a href="#base-modal" data-href="{% url 'dashboard:order-shipping-edit' order_pk=order.pk %}"
@@ -359,6 +360,7 @@
{% endif %}
{% endif %}
</p>
+ {% endif %}
<p>
{% if order.display_gross_prices %}
{% trans "Taxes (included)" context "Order total taxes" %}
@@ -410,9 +412,11 @@
<p>
{% price order.get_subtotal display_gross=order.display_gross_prices %}
</p>
+ {% if order.is_shipping_required or order.shipping_method %}
<p>
{% price order.shipping_price display_gross=order.display_gross_prices %}
</p>
+ {% endif %}
<p>{% price order.total.tax %}</p>
{% if order.is_draft or order.discount_amount %}
<p>{% discount_as_negative order.discount_amount html=True %}</p>