Adding filters to your Shopify product tables
Filters help customers find the right products in a long table. For example, a customer can choose a vendor from a dropdown, and the table instantly shows only that vendor's products. Our Barn2 Product Table Shopify app lets you add filters to each table separately.
Adding filters to a table
- Go to Barn2 Product Table → Product tables and create or edit a table.
- In the 'Search and sort' section, tick one or both of the 'Filter locations':
- Display filter dropdowns above the table - The filters appear in a row above the table. This option is ticked by default.
- Show filters in column headers - Each filter appears in the heading of its matching column. For example, the Vendor filter appears in the Vendor column heading.
- Choose a filter from the dropdown underneath the list of filters, then click 'Add filter'. Repeat this to add more filters.
- Drag and drop the filters to change their order.
- Click 'Save'.
If you use 'Show filters in column headers', make sure the table also has the matching column. For example, add the Vendor column if you're using the Vendor filter.
Available filters
- Product type - The product types that you've entered in Shopify.
- Vendor - Your product vendors.
- Collection - The collections that the products belong to.
- Tags - Your product tags.
- Price range - Five price ranges, starting from zero and going up to your most expensive product. The app works out the ranges for you, using round numbers.
- Availability - In stock or out of stock.
Each dropdown only lists the options that are used by the products in that table. For example, if a table lists one collection, then the Vendor filter only lists the vendors in that collection.
The Price range filter is hidden from logged-in B2B customers, and from customers who are shopping in a different currency from your store's default currency. That's because their prices are different from your standard prices, so the ranges wouldn't match.
Renaming a filter
Click a filter in the list to open its settings. Enter your own wording in the 'Display name' field, for example "Brand" instead of "Vendor". Leave it blank to use the default name.
Filter options on the Settings page
These options on the Settings page apply to the filters in all your tables:
- Allow selecting multiple values from each filter - Customers can choose more than one option in each filter, for example two vendors at once. This doesn't apply to the Price range and Availability filters, which take one option at a time.
- Display the currently active filters above the table - Lists the filters the customer has chosen. Customers can remove each filter from this list.
- Show the number of products that match each filter value
Why isn't a new product or tag in the filters?
The app keeps a copy of your product data to make the filters fast. It refreshes this every 6 hours by default. To refresh it straight away, click 'Clear cache' on the Settings page.