Skip to content

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

Fix images on category items view

weronka3eaee65201d7
diff --git a/templates/category/_items.html b/templates/category/_items.html
index 7e58f6b249..474929d9d9 100644
--- a/templates/category/_items.html
+++ b/templates/category/_items.html
@@ -14,7 +14,8 @@
<div class="text-center">
<div>
<img class="img-responsive"
- src="{% get_thumbnail line.variant.product.images.first.image method="crop" size="255x255" %}" srcset="{% get_thumbnail line.variant.product.images.first.image method="crop" size="255x255" %} 1x, {% get_thumbnail line.variant.product.images.first.image method="crop" size="510x510" %} 2x"
+ src="{% product_first_image product method="crop" size="255x255" %}"
+ srcset="{% product_first_image product method="crop" size="255x255" %} 1x, {% product_first_image product method="crop" size="510x510" %} 2x"
alt="">
<span class="product-list-item-name" title="{{ product }}">{{ product }}</span>
</div>