Skip to content

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

Use internal placeholder image

Adam Bogdał42152a65317c
diff --git a/saleor/product/templates/category/index.html b/saleor/product/templates/category/index.html
index 1e61db3611..9a4e393aa9 100644
--- a/saleor/product/templates/category/index.html
+++ b/saleor/product/templates/category/index.html
@@ -3,6 +3,7 @@
{% load slice from shop %}
{% load price_range from price_ranges %}
{% load discounted_price_range price_difference from discount %}
+{% load static from staticfiles %}
{% block title %}{{ category }} — {{ block.super }}{% endblock %}
@@ -21,7 +22,7 @@
{% if product.images.first %}
<img class="img-responsive" src="{{ product.images.first.image.thumbnail.750x750 }}" alt="">
{% else %}
- <img class="img-responsive" src="http://placehold.it/750x750/F5F5F5/AAAAAA?text=Product Image" alt="">
+ <img src="{% static 'placeholders/product-image-placeholder.png' %}" alt="" class="img-responsive">
{% endif %}
</a>
<h3><a href="{{ product.get_absolute_url }}">{{ product }}</a></h3>
diff --git a/saleor/product/templates/product/details.html b/saleor/product/templates/product/details.html
index 4b33f23693..9e1ec4a3fb 100644
--- a/saleor/product/templates/product/details.html
+++ b/saleor/product/templates/product/details.html
@@ -6,6 +6,7 @@
{% load gross from prices_i18n %}
{% load markdown from markdown %}
{% load price_range from price_ranges %}
+{% load static from staticfiles %}
{% block title %}{{ product }} — {{ block.super }}{% endblock %}
@@ -47,7 +48,7 @@
{% if product.images.first %}
<img class="img-responsive" src="{{ product.images.first.image.thumbnail.750x750 }}" alt="">
{% else %}
- <img class="img-responsive" src="http://placehold.it/750x750/F5F5F5/AAAAAA?text=Product Image" alt="">
+ <img src="{% static 'placeholders/product-image-placeholder.png' %}" alt="" class="img-responsive">
{% endif %}
<hr>
@@ -97,7 +98,7 @@
</div>
{% empty %}
<div class="item active">
- <img class="img-responsive" src="http://placehold.it/750x750/F5F5F5/AAAAAA?text=Product Image" alt="">
+ <img src="{% static 'placeholders/product-image-placeholder.png' %}" alt="" class="img-responsive">
</div>
{% endfor %}
</div>