Shopify Product Filters·shopify

Shopify Size & Color Variant Filter

Create a powerful Shopify size and color variant filter for collection and product pages with this customizable Liquid section. The advanced product filter automatically detects size and color option names, displays available options in clean dropdown selectors, and keeps compatible size and color combinations synchronized as shoppers make their selections. Built for Shopify storefronts, this responsive variant filtering solution helps customers find the right product options faster, improves product discovery, reduces confusing out-of-stock selections, and delivers a smoother ecommerce shopping experience across desktop and mobile devices. Use it as a flexible Shopify Liquid product filter for fashion stores, apparel brands, footwear shops, and any catalog that relies on multiple product variants and collection-based filtering.

languageliquid
fileadvance-variant-filter.liquid
lines561
#shopify#shopifyliquid#productfilter#shopifyproductfilter#variantfilter#sizefilter#colorfilter#sizeandcolorfilter#collectionfilter#productoptions#responsiveecommerce

source

The full code

advance-variant-filter.liquid
locked
1{%- liquid
2 if section.blocks.size > 0
3 assign section_onboarding = false
4 else
5 assign section_onboarding = true
6 endif
7
8 assign size_opt_name = section.settings.size_option_name
9 if size_opt_name == blank
10 assign size_opt_name = 'Size'
11 endif
12
13 assign color_opt_name = section.settings.color_option_name
14 if color_opt_name == blank
15 assign color_opt_name = 'Color'
16 endif
17 -%}
18
19 {% style %}
20 .dynamic-section-{{ section.id }}{

Unlock the full code

Enter your name & email to reveal 541 more lines

● liquid20/561 lines

Want sections like these built for you?

Custom Shopify themes, sections, and apps tailored to your brand.

hire me→