I implement breadcrumbs on our site. Unfortunately the parent collection can’t be included on it

I want to construct it like Home>>Parent Collection(Office Chairs)>>Collection(Ergonomic Chairs)>>Product page
Here is the code that I implemented
.breadcrumbs { margin: 0 0 2em; background-color: {{ settings.breadcrumb_bg_color }}; padding-top: {{ settings.padding_top }}px; padding-bottom: {{ settings.padding_bottom }}px; padding-left: 20px; } .breadcrumbs__list { list-style-type: none; margin: 0; padding: 0; } .breadcrumbs__item { display: inline-block; } .breadcrumbs__item:not(:last-child):after { display: inline-block; content: '\00bb'; margin: 0 .6em; color: #959fa5; font-size: {{ settings.font_size }}px; } .breadcrumbs__link { text-decoration: none; color: {{ settings.breadcrumb_text_color }}; font-size: {{ settings.font_size }}px; } .breadcrumbs__link:hover { text-decoration: none; } .breadcrumbs__link[aria-current="page"] { color: #999 !important; font-weight: normal; text-decoration: none; } .breadcrumbs__link[aria-current="page"]:hover, .breadcrumbs__link[aria-current="page"]:focus { text-decoration: none; } .breadcrumbs__item:last-child:after { content: ''; } .disabled-breadcrumb { color: #999 !important; pointer-events: none !important; text-decoration: none !important; }{% unless template == ‘index’ or template == ‘cart’ or template == ‘404’ %}
{% assign t = template | split: ‘.’ | first %}
- Home {% case t %} {% when 'page' %}
- {{ page.title }} {% when 'product' %}
- Collections {% if collection %}
- {{ collection.title }} {% endif %}
- {{ product.title }} {% when 'collection' %}
- Collections
- {{ collection.title }} {% if current_tags %}
- {{ collection.title }}
- {{ current_tags | join: ' + ' }} {% endif %} {%- when 'blog' -%} {%- if current_tags -%}
- {{ blog.title | link_to: blog.url, class: "breadcrumbs__link" }}
- {%- capture tag_url -%}{{ blog.url }}/tagged/{{ current_tags | join: "+" }}{%- endcapture -%} {{ current_tags | join: ' + ' }} {%- else -%}
- {{ blog.title }} {%- endif -%} {%- when 'article' -%}
- {{ blog.title | link_to: blog.url, class: "breadcrumbs__link" }}
- {{ article.title }} {%- else -%}
- {{- page_title -}} {%- endcase -%}
Let me know your thoughts about this.
I can feel that there is a problem of categorising the product pages
