I am a beginner in the code on Shopify and not able to re-order filter tags on collection pages. I searched and followed these below solutions but not able to achieve it as I dont understand the code and where to edit it to meet my requirements.
I understand its Alphabaitcal by default but I just want to reorder in a way that my Pre Order and In Store shows at the end of the list. Idea is to show these long names at the end after all other tags.
I have the exact same issue with my website. But I have two filters that needs to be re-ordered. Can I just add more values for both filters in the same string?
Tina, this depends on how your code is done, can you at least share a (preview) link so I can see what you already have as I do not know how your filters are done.
As I mentioned I have two filter options that as for now are in a wrong order. In the snip below you se the filters - marked with red. Obviously I would like the filter “Pind” to be in the order Pind 2, Pind 3, Pind 4 etc. and the filter “Strikkefasthed” should be in the order: 30- 26m, 28- 26 m, 26- 23 m, 22- 20 m, 19-16 m, 11-9 m
Another issue I have at the moment is on my product pages. I am using two options but I only want to show the first on on the product page. Can you help me with a solution to remove the second one? I marked the one to remove on the snip below.
The reason is, that the first one (Color) is all the different colors that particular yarn comes in. And that I need on my product page. The other one (Farve) is something I have created to be able to filter on some color-groups. That is all different pink shades is filed under “pink” so that costumers can search on all pink shades at once. But it should not be visible on the Product page.
Huh, since you’re using App for filtering, the solution above would not work for you. However, I assume you’ve created your filter groups manually, since you do not have prefixes on your tags. If this is the case, then you can sort the tags inside groups as per the app manual – look at Case 1, step 9.
As for your second question, I think your way of doing it is a bit unusual, but anyway, if you’re absolutely sure that you need to hide second variant selector on all product pages, then this can be done by adding a rule like this to the very bottom of your theme.scss.liquidasset:
/* hide second drop-down on product page */
.selector-wrapper:nth-child(2) {
display: none;
}
/* add this to make first selector full-width */
.selector-wrapper:nth-child(1) {
flex-basis: 100%;
}