Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Here is the code, but I can't work out how get the amount of products in the collection
{%- for grandchildlink in childlink.links -%}
<div>
<a href="{{ grandchildlink.url }}" class="site-nav__dropdown-link">
{{grandchildlink.title}}
</a>
</div>
{%- endfor -%}
{%- endfor -%}
{% if collection.products.size == 0 %} {% assign collection_url = '' %} {% else %} {% assign collection_url = '/collections/' | append: collection.handle | append: '?view=all' | prepend: shopify_domain %} {% endif %> <a href="{{collection_url}}">View all {{collection.title}}</a>
Should look something like this.
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025