diff --git a/snippets/shx-featured-collection.liquid b/snippets/shx-featured-collection.liquid new file mode 100644 index 0000000..59f6fcb --- /dev/null +++ b/snippets/shx-featured-collection.liquid @@ -0,0 +1,63 @@ +{% stylesheet %} +{{ 'component-card.css' | asset_url | stylesheet_tag }} +{{ 'component-price.css' | asset_url | stylesheet_tag }} +{{ 'component-slider.css' | asset_url | stylesheet_tag }} +{{ 'template-collection.css' | asset_url | stylesheet_tag }} +{% endstylesheet %} + +{%- liquid + assign tag_to_filter = 'your-tag' + assign columns_desktop = 4 + assign full_width = false + assign image_ratio = 'adapt' + assign image_shape = 'default' + assign show_secondary_image = false + assign show_vendor = false + assign show_rating = false + assign enable_quick_add = false +-%} + +{%- for collection in collections -%} + {%- assign filtered_products = collection.products | where: 'tags', tag_to_filter -%} + + {%- if filtered_products.size > 0 -%} +