A good mobile filter and sort design for an online store comes down to a few decisions: show only the filters that match how people in your category choose, open them in a full-height panel that is reachable with one thumb, apply changes with clear feedback, show the active filters as removable chips, keep a visible result count, and make every control usable by touch, keyboard and screen reader. If you are planning ecommerce website development in Pune, or reviewing the store you already have, the product listing page is where browsing turns into buying, and on phones it is where many stores quietly lose the visitor. This guide is about the interface and the build, not the search-engine side, which we cover separately.
It is written for store owners, merchandisers and the developers or agency teams they work with. It explains what to put in the filters, how to lay them out on a small screen, how sorting should work, what to do when nothing matches, how to build the controls accessibly, what filters do to speed, and a test routine you can run in an afternoon.
What a filter is for
Filters and sorting exist to help a shopper reduce a long list to a short, relevant one. They are not a catalogue of every attribute you store. A shopper looking at kurtas wants size, colour, price and perhaps fabric. A shopper looking at laptops wants budget, screen size, processor and maybe weight. The right filters depend on the category, and they should come from how customers describe what they want, not from the order of columns in your product spreadsheet.
Three questions decide which filters earn a place:
- Do customers in this category actually choose by this attribute? Check your site search terms, customer service questions and, if you have them, product-page analytics.
- Do you have complete, consistent data for it? A "material" filter where half your products have the field empty is worse than none; shoppers filter and then wrongly exclude half your range.
- Does it produce meaningful groups? A filter whose values are all unique, or where 95 percent of products fall in one value, adds clutter.
Our guide to site search and category navigation covers how filters sit alongside search and menus; here we focus on the filtering interface itself.
Choose the filters: a starting set by category type
The sets below are starting points to adapt, not rules, and the examples are illustrative.
| Category type | Likely useful filters | Often unnecessary |
|---|---|---|
| Clothing and footwear | Size (in stock), colour, price, fit, fabric, occasion | Brand, if you sell one brand |
| Electronics | Price, brand, key spec (screen size, capacity), rating | Colour for most items |
| Home and kitchen | Price, type, material, capacity, brand | Gender, age |
| Beauty and personal care | Skin or hair type, concern, price, ingredient exclusions | Colour (except cosmetics) |
| Grocery and food | Diet type, pack size, brand, price | Material |
| Books and stationery | Language, format, author, price | Colour |
A few practical rules:
- Put the most-used filter first. Often that is size for clothing or price for most categories.
- Show only filter values that exist in the current result set. A colour that would return zero results should be disabled or hidden, not offered as a trap.
- Use customer language. "Cotton", not "Natural fibre blend 02". Maintain a single clean list of values and avoid near-duplicates such as "Navy" and "Navy blue" and "Dark blue".
- Limit the number visible at once. On a phone, five to seven filter groups with an option to expand more is easier to scan than twenty open groups.
- Group related values and use the right control: checkboxes for multi-select, radio buttons for single choice, a slider or two fields for price, swatches for colour (with text labels or accessible names).
Mobile layout: the filter panel
On a desktop a left sidebar works well. On a phone it does not; a sidebar either squeezes the product grid or pushes the products far down the page. The common solution is a Filter button that opens a panel.
What works in practice:
- A visible, labelled button near the top of the listing: "Filter" (with the number of active filters, for example "Filter (2)") and "Sort" side by side. An icon alone is ambiguous.
- Sticky controls. Keep the Filter and Sort bar visible as the shopper scrolls, so they do not have to scroll back to the top. Make the bar slim; a sticky element that eats a quarter of the screen hurts more than it helps.
- A full-height panel (a bottom sheet or full-screen drawer) rather than a tiny dropdown. It gives room for large touch targets.
- Accordion groups inside the panel, each with a clear heading, opening one at a time or remembering what the shopper opened.
- A fixed footer inside the panel with two buttons: "Show 48 results" (the live count) and "Clear all". The primary button should be thumb-reachable at the bottom, not hidden at the top.
- A clear way out: a close button, support for the back gesture, and the Escape key on keyboards.
- No surprises: closing the panel without applying should not silently discard everything unless that is made clear.
Apply instantly or apply on button?
There are two patterns, and both can be defended:
- Instant apply: the list updates as each choice is made. It feels responsive on a fast connection, but on slow mobile data every tap triggers a reload, which can be frustrating, and shoppers can lose their place.
- Apply on confirm: the shopper makes several choices, then taps "Show results". This reduces reloads and works better on weak connections, but needs the live count on the button so they know what to expect.
For a mobile panel, apply-on-confirm with a live count is often the kinder choice for shoppers on variable mobile connections. On desktop, instant apply usually feels natural. Whichever you choose, tell the shopper what is happening: show a loading state, keep the results visible until new ones arrive, and avoid layout jumps.
Active filters as chips
After the shopper applies filters, show them as removable chips above the product grid: "Size: M ×", "Colour: Blue ×", "Under ₹1,500 ×", plus a "Clear all" link. Chips solve three problems at once: they remind the shopper why the list looks the way it does, they make one-tap removal easy, and they reduce the "where did all my products go?" confusion.
Make each chip a real button with a text label that includes the filter group and value, and give the remove action an accessible name such as "Remove filter Size M". An "×" character alone means nothing to a screen reader.
The result count and the empty state
Always show the number of results ("48 products"). It confirms the filters are working and helps shoppers decide whether to narrow or widen.
The empty state matters more than most stores realise. A shopper who combines filters into a zero-result page needs a way out. A helpful empty state:
- Says plainly that nothing matches the current choices.
- Names the active filters and offers to remove the most restrictive one, or "Clear all".
- Suggests related categories or best-sellers.
- Offers a way to ask: a WhatsApp or contact link for "Can't find it? Ask us."
Better still, prevent most dead ends by disabling or hiding values that would produce zero results, and by showing counts next to values where your system can compute them cheaply.
Sorting: fewer options, clear labels
Sorting changes the order of the same results. Typical options:
- Recommended or Featured (your default merchandising order, which should be an honest ranking, not a pay-to-appear one that misleads shoppers).
- Price: low to high and Price: high to low.
- Newest.
- Rating (only if you have enough reviews to make it meaningful).
- Best sellers, if you have the data.
Keep to five or six at most. Use a native <select> or a clear radio list in the sort panel so it works with assistive technology and with the phone's own selector UI. Show the current choice on the button ("Sort: Price low to high") so the state is visible.
Be careful with a sort called "Popularity" that actually reflects your preferred margin or stock clearance. If it is a recommendation, call it "Recommended".
Price filters
Price filtering deserves special care, because shoppers differ in what they expect:
- Provide quick ranges ("Under ₹500", "₹500 to ₹1,000", "₹1,000 to ₹2,500", "₹2,500 and above") and/or two number fields for custom minimum and maximum. Sliders are fiddly on phones and hard to operate with assistive technology unless built carefully; if you use one, pair it with number inputs.
- Use ranges that suit your catalogue, derived from your actual prices, not arbitrary round numbers.
- Show prices consistently with the way they appear on product cards, including whether they are inclusive of taxes, so that filtering and the card agree.
- Validate inputs: handle minimum greater than maximum, empty fields and non-numeric entries with clear messages.
Colour and size controls
Colour swatches need text alternatives. A swatch that conveys information only by colour fails shoppers with colour-vision differences and screen reader users. Give each swatch a visible or programmatic name ("Navy") and a visible selected state that does not rely on colour alone, such as a border plus a tick.
Size filters should reflect what is actually in stock. A shopper who filters for size M and then finds the product is sold out in M is irritated. Where your platform allows, base the size filter on available variants, not on all variants that exist in the catalogue. If a size guide helps, link to it from the filter or the product page, but keep the filter itself simple.
Building the controls accessibly
Filters are interface-heavy, and many are built in ways that exclude keyboard and screen reader users. Our wider guide to an accessible online store under WCAG 2.2 covers the standard; the filter-specific points are:
- Use real form controls:
<input type="checkbox">with a<label>,<fieldset>and<legend>for each group,<select>for sort. Avoid building them from clickable<div>elements. - Keyboard operation: every control reachable with Tab, operable with Space or Enter, with a visible focus indicator that is not hidden by a sticky header.
- The panel is a dialog: when it opens as an overlay, move focus into it, trap focus inside while it is open, return focus to the Filter button when it closes, and allow Escape to close it. The W3C ARIA Authoring Practices describe the dialog pattern (ARIA Authoring Practices Guide: Dialog (Modal)).
- Accordion groups can use buttons with
aria-expandedandaria-controls, following the disclosure pattern. - Announce results: when the list updates, tell assistive technology, for example with a polite live region that says "48 products". Without this, a screen reader user does not know anything happened.
- Target size: WCAG 2.2 requires pointer targets of at least 24 by 24 CSS pixels, or enough spacing around smaller ones (W3C Understanding Success Criterion 2.5.8). Checkbox rows should be tappable across the whole row, not just the tiny box.
- Do not rely on colour alone for selected states or for disabled options; add text, icons or patterns.
- Responsive and zoom: the panel should work at 200 percent zoom and in landscape orientation without hiding the apply button.
Speed: filters should not make the page heavy
A filter that fetches new results on every tap can feel slow on mobile data, and heavy scripts can hurt the page's interaction responsiveness. Some points for the developer:
- Return only what is needed: send the list of products and counts, not the whole page again, if you update in place; or use a normal page navigation where simplicity wins.
- Keep the product grid light: correctly sized images (see our note on store speed and Core Web Vitals), and avoid loading unnecessary scripts for the filter panel until the shopper opens it.
- Debounce rapid changes, such as typing in a price field, so you do not fire a request for every keystroke.
- Keep layout stable: reserve space for the grid and chips so the page does not jump when results change, because jumping targets cause mis-taps.
- Think about pagination. Filtering interacts with how you load more products. Our guide to pagination, load more and infinite scroll covers preserving the shopper's place and the filter state.
State, links and the back button
Shoppers expect the Back button to take them to the previous view, and expect to share a filtered link with a friend. To support that:
- Put the filter state in the URL (as query parameters), so a filtered view can be bookmarked, shared and restored.
- Preserve filters when returning from a product page. One of the most irritating behaviours on mobile stores is tapping Back and finding the filters reset and the scroll position lost.
- Keep sort and filters across pagination.
- Be deliberate about what search engines see. Filtered URLs can create a very large number of near-duplicate pages. Which ones to allow, canonicalise or block is an SEO decision, and our separate guide on faceted navigation and SEO explains the options. Google's own documentation on managing faceted navigation is a useful reference (Google Search Central: Managing crawling of faceted navigation URLs).
What your platform gives you
Most stores will use one of three routes, and the effort differs:
- Shopify: themes include storefront filtering using product data such as variants, tags, metafields and availability. The quality of the experience depends on how clean your product data is and the theme you pick. Test the theme's filter on a real phone before you commit.
- WooCommerce: the core product filter blocks are basic; many stores add a filter plugin or custom development. Test any plugin for speed, accessibility and how it handles URLs before installing it on a live store.
- Custom or headless builds: the most flexibility and the most responsibility, since filtering, counts, URL state and accessibility are all yours to build and test.
Whichever route, the quality of your product data matters more than the widget. Consistent attributes, a controlled vocabulary of values and complete fields are what make filters useful. Cleaning up the data is often the highest-value step; see our guide to preparing your product catalogue data.
A one-afternoon test plan
You do not need a research lab to find the big problems. With a phone, a couple of colleagues or friends, and a notepad:
- Pick three real shopping tasks, such as "find a blue cotton kurta in size M under ₹1,500" or "find a 1.5 litre kettle under ₹2,000".
- Ask each person to complete them on their own phone, on mobile data, without help, while you watch and make notes. Do not explain the interface.
- Note where they hesitate: they cannot find the Filter button, they cannot tell which filters are on, they reach zero results, or they cannot get back to the list.
- Try keyboard-only on a laptop: can you reach and operate every filter and sort control, and see where focus is?
- Try a screen reader briefly (TalkBack on Android or VoiceOver on iPhone) and check that group names, selected states and result counts are announced.
- Zoom to 200 percent and rotate to landscape.
- Check the analytics: how many sessions use filters, which filters are used most, and how conversion differs between sessions that use them and those that do not. Treat the comparison cautiously, because shoppers who filter are often more motivated anyway.
- Fix the top three problems, retest, and write down what changed and when.
Five or six people will not give statistical proof, and no one should claim they do, but they will often reveal the problems that matter most.
Common mistakes
- Too many filters, most of which no one uses.
- Filters based on incomplete data, silently hiding products.
- A tiny Filter icon with no label.
- Instant reloads on every tap over slow mobile data.
- No count and no feedback, leaving shoppers unsure whether anything changed.
- Zero-result dead ends with no way out.
- Lost state after tapping a product and pressing Back.
- Colour-only swatches with no names.
- Sticky bars too tall, covering content and focused fields.
- Misleading sort labels, such as calling a margin-based order "Popular".
- Treating filters as a plugin to install and forget, instead of a feature to test with real shoppers.
When to involve a developer for ecommerce website development in Pune
If your filters are a theme setting you can change yourself, test and tune them first. If you need a custom attribute structure, filters that depend on live stock, a tailored mobile panel or integration with an inventory system, that is development work. Ask a prospective team to show a filtering interface they built on a phone, ask how they handle URL state, accessibility and empty results, and ask who owns the code and the product data model afterwards.
Frequently asked questions
How many filters should a product listing page have?
Enough to cover how customers in that category choose, and no more. For most categories that is about five to seven filter groups visible on a phone, with extra ones behind a "More filters" control. Base the choice on real customer language and on data you have completed for most products.
Should filters apply instantly or after pressing a button on mobile?
Both work. On phones with variable connections, apply-on-confirm with a live result count on the button avoids repeated reloads, while instant apply can feel more responsive on fast connections. Whichever you choose, show loading and result feedback.
How do I make product filters accessible?
Use real checkboxes, radio buttons and labels grouped in fieldsets; make every control keyboard operable with a visible focus indicator; treat the mobile panel as a dialog with focus management; announce result updates to screen readers; and keep touch targets large enough.
Do filters hurt SEO?
They can if every combination creates a crawlable, near-duplicate URL. Decide which filtered pages deserve to be indexed and manage the rest with canonical tags, robots rules or parameter handling, following Google's guidance on faceted navigation.
What should happen when a filter combination returns no products?
Say so clearly, show which filters are active, offer to remove the most restrictive one or clear all, suggest related products and give a way to ask for help. Better still, disable options that would lead to zero results.
Planning an online store that shoppers can actually browse?
Govindani Infotech Pvt. Ltd. is a website design and development company at 2nd Floor, Landmark Plaza, 206 Satara Road, Parvati Paytha, Pune 411009. We build online stores on WooCommerce, Shopify and custom code, and the browsing experience on a phone is something we plan from the start. See our website creation services and our checkout system service, then contact us or call 092019 58274.
Sources:
- W3C: Understanding Success Criterion 2.5.8 Target Size (Minimum), WCAG 2.2
- W3C WAI: ARIA Authoring Practices Guide, Dialog (Modal) pattern
- W3C WAI: ARIA Authoring Practices Guide, Disclosure pattern
- Google Search Central: Managing crawling of faceted navigation URLs
About the author: written by the Govindani Infotech ecommerce web development team in Pune.