Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix breadcrumbs
michal2aa42a6075f5
diff --git a/templates/category/index.html b/templates/category/index.htmlindex bb258dc438..1348c99d48 100644--- a/templates/category/index.html+++ b/templates/category/index.html@@ -33,9 +33,9 @@<div class="col-md-7"><ul class="breadcrumbs list-unstyled d-none d-md-block"><li><a href="/">Home</a></li>- {% if category.parent %}- <li key=''><a href='(( category.parent.name.get_absule_url }}'>{{ category.parent.name }}</a></li>- {% endif %}+ {% for ancestor in category.get_ancestors %}+ <li><a href='{{ ancestor.get_absolute_url }}'>{{ ancestor.name }}</a></li>+ {% endfor %}<li><a href='{{ category.get_absolute_url }}'>{{ category.name }}</a></li></ul></div>@@ -83,8 +83,11 @@<h2><strong>{{ category.name }}</strong></h2>- <!--This should be dynamic if category has childs/parents-->- <ul class="product-filters__categories__childs no-parent"></ul>+ <ul class="product-filters__categories__childs no-parent">+ {% for child in category.get_children %}+ <li><a href="{{ child.get_absolute_url }}">{{ child.name }}</a></li>+ {% endfor %}+ </ul></div></div><div>