Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add styles to colletions
Krzysztof Białogłowiczac33d7ce6caf
diff --git a/saleor/static/scss/layouts/_product-page.scss b/saleor/static/scss/layouts/_product-page.scssindex c1d033134c..9fc8924e68 100644--- a/saleor/static/scss/layouts/_product-page.scss+++ b/saleor/static/scss/layouts/_product-page.scss@@ -95,4 +95,11 @@}}}+ &__collections {+ padding-top: $global-padding * 4;+ h2 {+ text-align: center;+ text-transform: uppercase;+ }+ }}diff --git a/templates/product/_product_collections.html b/templates/product/_product_collections.htmlindex 8c023f85c1..08b77f5d6b 100644--- a/templates/product/_product_collections.html+++ b/templates/product/_product_collections.html@@ -1,3 +1,18 @@+{% load i18n %}+{% load staticfiles %}+{% load price_range from price_ranges %}+{% load product_first_image from product_images %}++<h2>See also</h2>+<hr><div class="row">- {% include 'category/_items.html' %}+ {% for product, availability 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>+ {% endfor %}</div>\ No newline at end of filediff --git a/templates/product/details.html b/templates/product/details.htmlindex 58439c8517..036fdd6bc3 100644--- a/templates/product/details.html+++ b/templates/product/details.html@@ -176,8 +176,6 @@{% endfor %}</table></div>- </div>- <div id="collections" data-url="{% url 'product:from_collections' product.id %}">-+ <div id="collections" class="product__collection" data-url="{% url 'product:from_collections' product.id %}"></div></div>{% endblock content %}