Skip to content
IvaSure add-ons and services for SureCart storesJoin the POD waitlist

Add your first filter

6 min read
Published

This is what you are building: a filter beside your products that narrows the results as a shopper selects options, without reloading the page.

A shop page. A filter panel labelled Filters runs down the left side, holding sort options, a price slider and sections for Rooms and Product Types with a count beside each option. A grid of product cards fills the rest of the page; each card shows a photograph, a name, a star rating and a price, and some carry a Sale badge with the previous price struck through.
Your shop page with a filter on the left and products on the right.
  1. The filter. Shoppers narrow the results here.
  2. The product listing. This is what gets narrowed. Filters does not create it - you point Filters at a listing that already exists.

The cards themselves - photograph, name, rating, price, sale badge - belong to SureCart. Filters does not change how a product looks; it changes which products are in the grid.

It takes about ten minutes and needs no code.

What you need first
SureCart active, IvaSure Filters installed and licensed, and a page that already shows a SureCart product listing.

Step 1: Open the Filters screen

In the WordPress admin, open IvaSure → Filters. This is where you decide what your filter contains and who sees what; it is the only screen this tutorial uses. The two cards at the top are the ones this tutorial uses: Launch status, which tells you whether a filter can render at all, and Launch checklist, a five-step path from product data to a tested storefront filter.

The WordPress admin. In the sidebar on the left, IvaSure is open with a submenu that includes Filters. The main area shows the IvaSure Filters screen: a rail of four tabs, a Launch status card holding four tiles, and a Launch checklist reading 5 of 5 steps complete, its five steps each marked with a green tick.
IvaSure → Filters. The IvaSure menu is at the bottom of the WordPress sidebar.
  1. IvaSure in the WordPress sidebar. Its submenu lists one entry per add-on you have installed; choose Filters.
  2. The four tabs of the Filters screen, and a line telling you how many sections will appear in your filter. You will stay on the first tab.

Knowing what each tab is for saves you hunting for a setting on the wrong one:

  • Filters decides what your filter contains: which product data becomes a section, which sections shoppers see, and a checklist that tells you what is still missing.
  • Design decides how it looks: styles, swatches, colours and layout, with a live preview.
  • Taxonomies is where you build new sections and give their options colours or images.
  • Cache & URLs covers performance and how filtered pages appear to search engines.

Step 2: Check there is something to filter by

At the top of the Filters tab, Launch status tells you whether a filter can render at all. Read it before you place anything on a page - it will save you debugging an empty filter later.

Four tiles, and only the first one decides whether a shopper sees anything.

The Launch status card, subtitled Storefront placement, section visibility, and filter cache at a glance. Four tiles sit side by side: Sections shown to shoppers reading 4 of 7 available with a Shown badge, Sources reading 1 of 2 with a IvaSure sections on badge, Cache health reading 200 rows with an Indexed badge, and Test page reading Connected above a chip naming the page ivasure-filter-qa.
Launch status, at the top of the Filters tab.
  1. Sections shown to shoppers is the number that matters: it is what a shopper will actually see. The line under it says how that number was reached, and Only selected mode means you picked them, which is Step 3. The second half of that tile, of 7 available, is what your product data could produce with the sources you have on.
  2. Sources counts where IvaSure is allowed to read from: SureCart collections, IvaSure sections, or both. Zero here and nothing can ever render.
  3. Test page is the page carrying the IvaSure shortcode that you will test on. Its chip names the page.

The third tile, Cache health, is the pre-computed index IvaSure filters from. It looks after itself, and the controls for it live on the Cache & URLs tab.

If the first tile reads 0
Shoppers see no filters, and a banner appears under the tiles telling you which case you are in. No section is eligible with the current sources means there is nothing to filter by: turn a source on with Enable SureCart collections, or build one with Create a section. No section is selected means the data is there but nothing is switched on: press Use all available sections, or do Step 3. Either button only stages the change; you still press Save Changes.

Step 3: Choose which sections shoppers see

The section list lives inside the checklist, in step 1. Sources decide what is possible; this list decides what is shown. If it is not on screen, press Review eligibility in the checklist header and the page scrolls to it.

Step 1 of the Launch checklist, Choose SureCart sources and eligibility, expanded. Two source cards sit at the top, SureCart collections switched off and IvaSure sections switched on. Below them a Show control offers All available sections or Only selected, with Only selected chosen and a count reading 4 selected. Under a search box, one row per section gives its name, key, option count, source and state: Rooms, Product Types, Materials and Use Cases read Shown, and Bulk QA Options reads Hidden with its reason beside it.
The section list, inside step 1 of the Launch checklist.
  1. Show is the choice. All available sections shows everything IvaSure finds; Only selected lets you pick. Choose Only selected.
  2. Tick the sections you want. The box and the section name both work. The count beside Show keeps up as you click, and so does the first tile at the top of the page.
  3. The state each row ends with. A ticked section reads Shown. An unticked one reads Hidden and names the reason, so a row that cannot appear always says why.

Nothing is live yet. A save bar appears at the bottom of the screen as soon as you change anything; press Save Changes.

Start with three or four sections. A filter with nine is a wall rather than a tool, and you can always add more once you can see it working.

Step 4: Put the filter on your page

Edit the page that shows your products and add the filter beside the listing, usually in a sidebar column.

In the block editor, search the inserter for IvaSure and place the block next to your product listing. It previews live using your real sections and counts, so what you see is what shoppers get.

If you are working in a page builder or a template instead, the shortcode does the same job:

Add this next to your product listing
[ivasure]

Save the page and open it as a shopper would.

If the filter appears but the products never change
Filters updates one region of the page, and it needs to know which region holds your products. It looks for SureCart’s own product list by default. If your grid comes from a page builder, tell Filters where it is by adding results_target with the CSS selector of the element wrapping all the products.

Check it worked

On the storefront, your filter should look like this. Each section carries its own controls and a count of what each option would return.

A close view of the filter panel on the shop page. At the top a Price section shows the catalogue range above a two-handled slider, with Min and Max inputs and an Apply button under it. Below that, Rooms and Product Types list their options as checkboxes, each with a count of matching products on the right; Product Types carries its own search box above its options and a Show more link below them. Product cards are visible to the right of the panel.
The filter on the storefront, beside the products it narrows.
  • Price as a slider, with number inputs beneath it.
  • A search box inside a section, which appears when a section has enough options to need one.
  • The count beside each option: how many products it would return right now. It reflects the selections already made, so it falls as a shopper narrows down - an option showing 0 cannot return anything and is worth hiding.

Select an option and confirm three things:

  1. The products narrow without the page reloading.
  2. The address bar gains a parameter, so the filtered view can be shared.
  3. The browser Back button undoes your selection.

On a narrow screen the filter collapses into a button rather than pushing your products down the page, and the button carries the number of options currently selected.

The same shop page on a phone. A Filters heading sits beside a search box at the top. Under them a card lists the sort options as radio buttons and ends with a Filters button, and the product cards run down the page below it.
On mobile the filter becomes a button that opens a drawer.
That is a working filter
Everything from here is refinement: how it looks, which facets you offer, and how it behaves on large catalogs.

Save to list