Solving the Shopify Search Page Mystery: Why 'No Products' Still Shows '3 Items'
Ever had a customer tell you they searched for something on your Shopify store, got a "No products found" message, but then saw "3 items" or some other number proudly displayed near the sort/filter options? It's a head-scratcher, right? It looks confusing, and frankly, it's not the best user experience.
This exact scenario recently came up in the Shopify community, and it sparked a great discussion, with store owners and experts weighing in. The original poster, kevalt, described the problem perfectly: "When I open the search pop-up from the home page, type 'about us,' and press Enter, I am redirected to the search page. It correctly shows no products found, but it still displays '3 items' near the sort/filter section. How can this be resolved?"
It's a common glitch, and thankfully, the community quickly identified the root cause and shared some fantastic solutions. Let's dive in!
The Root of the "Phantom Count" Problem
So, why does this happen? The consensus from experts like PieLab and AnneLuo is pretty clear. Shopify's default search mechanism is designed to be comprehensive. It doesn't just look for products; it actively searches across products, pages, and blog posts simultaneously. So, when kevalt searched for "about us," Shopify found the "About Us" page (and potentially other non-product items like a "Contact" page or a relevant blog post).
The issue arises because many Shopify themes, by default, are configured to display only products on the main search results page. So, while the search engine found those "3 items" (pages, blog posts), your theme decided not to show them in the product grid. The counter, however, was still pulling from the total number of all search results, leading to that misleading "3 items" display.
As AnneLuo put it:
- Shopify search is still finding pages/articles
- [Your theme] only renders products
- The result counter is not filtered accordingly
- Therefore “3 items” appears even though no products are shown
Tim_1 also chimed in, noting that sometimes themes are modified in Liquid to filter results, say, only showing products by checking the result type in Liquid loops. This can lead to the code skipping non-product results, but the original counter still includes them.
The Easiest Fix: Shopify's Search & Discovery App
While the community offered some clever code-based solutions (which we'll get to), kevalt actually found the simplest and most direct fix themselves, and it's fantastic because it uses Shopify's own "Search & Discovery" app. This is definitely where I'd recommend starting!
Step-by-Step: Using the Search & Discovery App
-
From your Shopify admin, go to Apps.
-
Find and open the Search & Discovery app. (If you don't have it, you can install it for free from the Shopify App Store.)
-
Once in the app, navigate to the Settings section.
-
You'll see options for what Shopify should search. Look for checkboxes related to "Search for pages" and "Search for blog posts."
-
Uncheck these boxes if you only want your search results to count and display products.
Here’s what kevalt shared, showing exactly which box to uncheck:
And the result? A perfectly clear search page with no phantom counts!
Advanced Solutions: Editing Your Theme Code
What if the Search & Discovery app setting isn't quite right for your specific needs, or if you're using an older theme? Don't worry, the community also shared some code-based solutions that give you more granular control. Remember to always back up your theme before making any code changes!
Option 1: Filter the Search Query Itself
Topnewyork suggested modifying your theme files to ensure the search query itself is explicitly filtered to products. This involves adding a hidden input field to your search forms.
-
From your Shopify admin, go to Online Store > Themes.
-
Find your current theme, click Actions > Edit code.
-
Locate the
main-search.liquidfile (usually in the "Sections" folder). After the main input tag for the search field, paste this line: -
Next, find the
header-search.liquidfile (often in the "Snippets" folder). After its input tag, paste the same line:
This tells Shopify to only search for products when these forms are submitted.
Option 2: Adjust the Counter Logic (for specific themes like Dawn)
Khanh-Linh2 offered another clever code snippet, particularly useful if your theme's counter isn't showing the right number even after filtering the search. This solution directly modifies how the item count is calculated.
-
From your Shopify admin, go to Online Store > Themes.
-
Find your current theme, click Actions > Edit code.
-
Look for the
search.liquidfile (often in the "Templates" folder, or sometimes within a section likemain-search.liquiditself). Find where{{ search.results_count }}is used to display the number of items. -
Replace
{{ search.results_count }}with:{{ search.results | where: "object_type", "product" | size }}
This Liquid code snippet specifically filters the search.results array to only include items where the object_type is "product" before counting them with size. It's a smart way to ensure your counter reflects only what's actually being displayed as a product.
PieLab also mentioned checking your Theme Editor for a built-in option to limit search results to "Products only." This is always a good first check before diving into code, as theme developers sometimes include these user-friendly toggles.
Making Your Products Shine in Search
Beyond just fixing the count, PieLab also brought up a good point about making your actual products stand out. If you're going to filter search to products only, it's even more important that those products look appealing. Using clear badges or labels can be a great fix to highlight your items effectively, preventing customer confusion and drawing attention to key features or promotions. Apps like Deco Product Labels can help with this, giving your product listings that extra pop.
It's awesome to see how the Shopify community comes together to solve these little quirks! Whether you opt for the straightforward app setting or get your hands dirty with a bit of Liquid code, the goal is the same: a clean, accurate, and user-friendly search experience for your customers. Test out these solutions on your store, and make sure your search page is always working for you, not against you.

