Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Display only 6 related products
Mira Szewczyk435156b078a2
diff --git a/saleor/product/views.py b/saleor/product/views.pyindex 0f4aee6d27..3fa625f5c9 100644--- a/saleor/product/views.py+++ b/saleor/product/views.py@@ -145,7 +145,7 @@ def products_from_collections(request, product_id):related_products = Product.objects.prefetch_related('collections', 'images').filter(collections__products__id=product_id).exclude(- id=product_id).distinct()+ id=product_id).distinct()[:6]products = products_with_availability(related_products,discounts=request.discounts,local_currency=request.currency)