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

Price, sale and rating facets

2 min read
Published
Category
Facets

Not every facet comes from a taxonomy. These three read product data directly, so they need no setup beyond having the data: a price, a sale price, or reviews.

Add them by name in the facets attribute. Anything that is not a recognised name is treated as a taxonomy slug.

Three data facets and one taxonomy
[ivasure facets="price,sale,rating,ks_room"]

Price

The price facet is a range rather than a list of options, so it works the same whether your catalogue spans twenty pounds or twenty thousand.

A filter section headed Price. Beneath it the current range reads $24 to $1,899, above a slider with a handle at each end, and Min and Max number inputs below.
The price facet: a range, a slider, and two inputs.
  1. The slider, with a handle at each end. The figures above it are the range currently in effect.
  2. Min and Max, for shoppers who would rather type than drag - and the only way to be precise on a touchscreen.
The bounds come from your catalogue
The lowest and highest values are read from your products, not configured. Add a more expensive product and the top of the range moves on its own.

On sale

A single checkbox that narrows to products carrying a sale price. A product counts as on sale when its price has a compare-at figure above the amount actually charged.

What the URL looks like
/shop/?ks_on_sale=1
Nothing on sale, no facet
A facet with nothing to offer does not render. If the on-sale option is missing, no product currently has a compare-at price - set one in SureCart and it appears.

Minimum rating

The rating facet is a minimum, not an exact match. Choosing three stars returns everything rated three and above, which is what a shopper means by “well reviewed”.

A filter section headed Rating listing five options, each showing a row of stars: 5 stars, then 4 stars and up, 3 stars and up, 2 stars and up, and 1 star and up.
The rating facet, read as a minimum.
  1. Each row is a floor. The top row is the only exact one, because five stars has nothing above it.

Products with no reviews are excluded by every option, including one star. They have no rating rather than a low one, and returning them would make the facet meaningless.

Ratings need reviews enabled
A product with reviews turned off renders no star row at all, whatever its rating says - so it will not appear under any rating option.

Save to list