Selecting One Category Tag at a Time - Supply Theme

Highlighted
Tourist
4 0 1

I have organized my tags into categories and my collection pages are set up to show these categories.

Now my customers can simultaneously select Colors_Red and Animals_Bird together. Is there a way to prohibit this functionality- to only allow one category to be selected at a time?

0 Likes
Highlighted
Tourist
4 0 1

Solved!  I needed to remove one word from the following code found in "collection-sidebar.liquid"

 <li class="advanced-filter" data-group="{{ cat_item }}" data-handle="{{ tag | handle }}">{{ tag | remove_first: cat_item | remove_first: '_' | link_to_add_tag: tag }}</li>

Remove "add" - Line should read as:

 <li class="advanced-filter" data-group="{{ cat_item }}" data-handle="{{ tag | handle }}">{{ tag | remove_first: cat_item | remove_first: '_' | link_to_tag: tag }}</li>

Now, my customers are restricted to selecting one category at a time.

1 Like
Highlighted
New Member
4 0 0

Thankyou very much, was just looking for this!

0 Likes