Skip to content

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

Show product sizes in cart summary

Artur Smęt0bc1648678f8
diff --git a/saleor/cart/templates/cart/index.html b/saleor/cart/templates/cart/index.html
index 933ffbb4cd..c502734c89 100644
--- a/saleor/cart/templates/cart/index.html
+++ b/saleor/cart/templates/cart/index.html
@@ -39,7 +39,12 @@
<tbody>
{% for form in formset %}
<tr>
- <td><a href="{{ form.cart_line.product.get_absolute_url }}">{{ form.cart_line.product }}</a></td>
+ <td>
+ <a href="{{ form.cart_line.product.get_absolute_url }}">{{ form.cart_line.product }}</a>
+ {% if form.cart_line.product.size %}
+ ({{ form.cart_line.product.get_size_display }})
+ {% endif %}
+ </td>
<td>{{ form.quantity|as_vertical_form:False }}</td>
<td>{% gross form.cart_line.get_price_per_item %}</td>
<td>{% gross form.cart_line.get_total %}</td>