Hello,
I am trying to add a link to a custom liquid file I have created. I have currently setup the nested buttons in the main menu, they have a # tag as a link at the moment.
I have my collections setup in a manner that reflects a genre of anime shows as opposed to a selection of items. Instead of “Mens Hoodies”, “Mens T-Shirts” etc I instead have “Attack on Titan”, “Bluelock” etc which house a selection of clothing items related to that show.
So now I need a way of simply displaying products based of item type such as hoodies, jumpers t-shirts. My thought process was to simply copy the code from the file that displays all products and simply do an if statement on the product tag to check if it is a hoodie, if so display it.
I would then repeat this code by changing it the next time to filter only for t-shirts and so on and so forth. The issue is that I can’t find out how Shopify link their collections button to the actual file without using the pre-created collections tag.
Ideally, if I could find a good source on how liquid and Shopify use routes I could have one file that simply pulls the parameter from the url and then depending on that result run one if statement to return the desired items. Suggestions on my approach are welcome.
Thanks,
Gareth