Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Replace schema.org with json-ld
Mira Szewczyk150310bbf4e6
diff --git a/templates/product/_product_collections.html b/templates/product/_product_collections.htmlindex 2a524c85f3..e85e7bda99 100644--- a/templates/product/_product_collections.html+++ b/templates/product/_product_collections.html@@ -2,17 +2,21 @@{% load staticfiles %}{% load price_range from price_ranges %}{% load product_first_image from product_images %}+{% load product_availability_schema from jsonld %}<h2>{% trans 'See also' %}</h2><hr><div class="row">{% for product in products %}- <div class="col-6 col-md-4 col-lg-2 product-list" itemscope itemtype="https://schema.org/Product">- <a itemprop="url" href="{{ product.get_absolute_url }}">- <div class="text-center">- <img itemprop="image" class="img-responsive" src="{% product_first_image product method="crop" size="400x400" %}" alt="">- </div>- </a>- </div>+ <div class="col-6 col-md-4 col-lg-2 product-list" itemscope>+ <a itemprop="url" href="{{ product.get_absolute_url }}">+ <div class="text-center">+ <img itemprop="image" class="img-responsive" src="{% product_first_image product method="crop" size="400x400" %}" alt="">+ </div>+ </a>+ <script type="application/ld+json">+ {% autoescape off %}{% product_availability_schema product %}{% endautoescape %}+ </script>+ </div>{% endfor %}</div>