Skip to content

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

Add placeholder in product items template

akjanik6b736540d387
diff --git a/templates/product/_items.html b/templates/product/_items.html
index f132cd60fb..5ba109c6a1 100644
--- a/templates/product/_items.html
+++ b/templates/product/_items.html
@@ -3,6 +3,7 @@
{% load price_range from price_ranges %}
{% load product_first_image from product_images %}
{% load get_thumbnail from product_images %}
+{% load placeholder %}
{% for product, availability in products %}
<div class="col-6 col-lg-3 product-list">
@@ -13,6 +14,7 @@
data-src="{% product_first_image product method="crop" size="255x255" %}"
data-srcset="{% product_first_image product method="crop" size="255x255" %} 1x, {% product_first_image product method="crop" size="510x510" %} 2x"
alt="">
+ src="{% placeholder size=255 %}">
<span class="product-list-item-name" title="{{ product }}">{{ product }}</span>
</div>
<div class="panel-footer">