Collections and filters
Collection pages are where most shoppers browse. Chisel shows products in a grid, or in a table for quick ordering, with filters, sorting and a row of subcategories. This guide covers how to set up filters, the grid and list views, and the subcategory row.
Before you begin
- Organize your products into collections in the Shopify admin. Each department or category should be a collection.
- Set up filters in the Search & Discovery app. The theme shows the filters that Shopify provides for each collection.
- Add a menu for the subcategories if you want the row of links. See step 4.
1. Set up filters
Chisel reads its filters from Shopify. It does not have its own filter list.
- In the Shopify admin, open the Search & Discovery app.
- Open Filters and add the filters you need, such as Brand, Product type, Price or a tag-based filter.
- Save.
- Open a collection on the storefront. Confirm that the filters appear.
Filters narrow the products in the collection. Choose filters that match what shoppers ask, and keep the values consistent across products. The filter options come from the product data that Shopify reads, such as tags, product type, vendor and options.
The theme shows the filters in the collection's filter area. Shoppers can:
- Select a filter value to narrow the products.
- Select the active filter's remove link to clear one filter.
- Select Clear all to clear every filter.
Active filters appear as plain text with remove links. They do not use the highlighter.
Choose the filter layout
- Open the collection template in the theme editor.
- Open the Collection section.
- Set Filter layout to Sidebar or Horizontal bar. The default is Sidebar.
- Save.
On a computer, the sidebar sits on the left of the product grid. On a phone, the filters open in a drawer called Filters. The drawer has a button that shows the number of results.
2. Use the grid and list views
The collection toolbar has two view links: Grid and List.
- Grid shows product cards in columns. Each card can show the code, key specifications, stock, the quantity selector and the compare checkbox. Use the product card settings in the theme settings to choose what shows.
- List shows a table with one row for each product. It is the same table as the quick order table. Shoppers can select lines and add them to the cart in one step. See the quick order guide.
The grid uses these settings in the Collection section:
- Desktop columns: the number of columns on a computer. The default is 4.
- Mobile columns: one column or two. The default is two.
- Products per page: the number of products on each page. The default is 24.
- Show description: shows the collection description above the products.
The choice between grid and list is remembered in the shopper's browser. The filters and sorting keep the chosen view when the shopper changes them.
Shoppers can also use a link with ?view=list or ?view=grid at the end of the collection address.
3. Sort and page through products
- Open the Collection section in the theme editor.
- Set Products per page.
- Save.
The sort menu, labeled Sort by, uses the sort options that Shopify provides for the collection. Set the default sort in the Shopify admin for the collection.
Pagination shows page numbers by default. Each page has its own address.
Use a Load more button
- In the Collection section, set Pagination to Load more button.
- Save.
The page then shows a line such as "Showing 24 of 132" and a Load more products button under the products. Shoppers who do not use JavaScript see the button as a link to the next page, so it still works. Shoppers with JavaScript get the next products added to the end of the grid or table without a page change. The filters and sort order stay the same, the count line updates, and the address in the browser changes to the last page loaded. When the last page is loaded, the button disappears.
The same setting is on the Search results section, so search results can use the button too.
4. Add a row of subcategories
The subcategory row sits above the products. It is a row of text links, so shoppers can move to a subcategory quickly.
- In the Shopify admin, go to Content > Menus. Create a menu for the subcategories, such as "Drills subcategories".
- Add a link for each subcategory. Use the subcategory collection as the link target.
- Open the collection template in the theme editor.
- In the Collection section, set Subcategories to the menu you created.
- Save.
The row shows nothing when the menu is empty or not set.
5. Use the department list
The department list shows all collections on a page. Each department is a cell with its name, its product count and an image.
- In the Shopify admin, go to Content > Pages and create a page, such as "Departments".
- Under Theme template, choose list-collections.
- Open the page in the theme editor. Confirm that the department cells show the way you want.
The product count is the number of products in each collection.
6. Check the product cards
The product card settings shape what a shopper sees before a product page. Open the theme settings and go to Product cards. Check these:
- Image ratio: adapt, 1/1, 4/5 or 4/3.
- Image fit: contain or cover.
- Show vendor, Show code, Show key specifications, Show stock.
- Show quantity selector and Show quick add.
- Show compare.
Turn off any setting that does not suit your products. The grid stays tidy when fewer details show.
Check your setup
- Open a collection with several products. Confirm that the grid shows the right number of columns.
- Select a filter. Confirm that the product count changes and that the filter appears in the active list.
- Select Clear all. Confirm that all products return.
- Select List. Confirm that the table shows each product with its code and stock.
- Open the store on a phone. Open Filters and confirm that the results button shows the right count.
- Open the subcategory row. Select a subcategory and confirm that it opens its own collection.
Settings used
- Filter layout, Desktop columns, Mobile columns, Products per page, Pagination, Quick-order rows, Show description, Subcategories (Collection section).
- Pagination (Search results section).
- Image ratio, Image fit, Show code, Show key specifications, Show stock, Show quantity selector, Show quick add, Show compare (Product cards group).
- Sort by and filters are set in Shopify, not in the theme.