The search box in Shopify product tables
Every product table in our Barn2 Product Table Shopify app can have a search box above it. Customers type a word or phrase, and the table updates to show only the matching products.
Turning the search box on or off
The search box is enabled by default. To change this:
- Go to Barn2 Product Table → Settings.
- In the 'Product search' section, tick or untick 'Display a search box above your product tables'.
- Click 'Save'.
This setting applies to all your tables.
What does the search box look for?
The search box uses Shopify's own product search. It finds products in the same way as the search on the Products page of your Shopify admin, including the product title, SKU, vendor, product type and tags.
The search only looks at the products in that table. For example, if a table lists one collection, then customers can only find products from that collection.
Customers can use the search box and the filters together. For example, they could choose a vendor from a filter, then search for a product name within that vendor's products.
Showing the number of results
The 'Number of products found' option on the Settings page shows a count such as "Showing 1-15 of 40". You can show it above the table, below the table (the default), in both places, or hide it.
To change the wording of the count, or the "No products match your search." message, go to the Text & Translations page.
Linking to search results
If you tick 'Create unique URLs for searched, filtered, sorted, and paginated tables' on the Settings page, then the page address changes when a customer searches the table. Customers can share or bookmark that address. When someone opens it, the table shows the same search results.