{%- liquid assign recommend_products = true if recommendations.products and recommendations.products_count > 0 assign related_collection = recommendations endif for tag in product.tags if tag contains '_related' assign include_collection_handle = tag | split: '_' | last assign include_collection = collections[include_collection_handle] if include_collection != empty and include_collection.products_count > 0 assign related_collection = include_collection assign recommend_products = false break endif endif endfor assign number_of_products = section.settings.related_count -%} {%- if section.settings.show_product_recommendations -%}