Skip to content
Cameron Themes

Cardinal docs/Templates

Collection page

The product grid, filtering, sorting and pagination.

The collection page is where most of your browsing happens. Cardinal's version filters and sorts without reloading the page: results update in place, the URL updates with them, and the back button still works.

Section settings

Header
Show collection titleToggle
Default: On
Show collection descriptionToggle
Default: On
Filtering and sorting
Enable filteringToggle

Manage filters in the Shopify Search & Discovery app.

Default: On
Enable sortingToggle
Default: On
Product grid
Products per pageSlider · 8–48
Default: 16
Columns on desktopSlider · 2–5
Default: 4
Columns on mobileSelect

1 · 2

Default: 2
Image ratioSelect

Portrait (4:5) · Square (1:1) · Natural

Default: Portrait (4:5)
Space between productsSlider · 0–48px
Default: 24px
Product card
Show color swatchesToggle
Default: On
Show add to cartToggle
Default: On
Colors
Make section full widthToggle
Default: Off
Color schemeColor scheme
Default: scheme-1
Section padding
Top paddingSlider · 0–160px
Default: 64px
Bottom paddingSlider · 0–160px
Default: 64px
Top padding (mobile)Slider · 0–160px
Default: 48px
Bottom padding (mobile)Slider · 0–160px
Default: 48px

Filtering

Filters come from Shopify's free Search & Discovery app, not from the theme. Install it, open Filters, and choose which product attributes to expose. Cardinal renders whatever you configured — and the same filters, in the same drawer, appear on the search results page:

Filter typeRenders as
AvailabilityAn In stock only toggle.
PriceA dual-handle range slider, with from and to fields.
An option with swatchesA grid of color or pattern swatches, when the option's values carry swatch data in Shopify.
Any other option, tag, product type, vendor or metafieldA checkbox list, with a count beside each value.

Filters open in a drawer that slides in from the side, and results update as each one is ticked. View results shows the current number of matches and closes the drawer. Applied filters appear as chips above the grid, each removable individually, with a Clear all that keeps the sort order.

Sorting

Enable sorting adds a sort control offering Shopify's standard orders — featured, best selling, alphabetical, price, date. Featured uses the manual order you set on the collection in the admin, which is worth curating for your most important collections.

The grid

Columns, image ratio and gap are yours to set. Four columns on desktop and two on mobile is the default and suits most catalogs. Three columns makes each product feel more considered — good for higher price points and fewer SKUs.

Products per page balances scrolling against loading. Sixteen to twenty-four keeps the page fast; beyond that, pagination is doing less work than it should.

  • Each card shows the price, the compare-at price when it is on sale, and the unit price when the variant has one.
  • Show color swatches adds up to five swatches under the title, with a +3-style count for the rest. They need an option whose name contains Color or Colour, with swatch data set up in Shopify — see Variants and swatches.
  • Show add to cart adds a quick-add button. Products with several variants get a button that takes the customer to the product page to choose instead.

Without JavaScript

The filter form is a real form and the sort control is made of real submit buttons, so the page works even if scripts fail to load. It just reloads instead of updating in place.

Empty states

A collection with no products says so rather than leaving a blank area. A filter combination with no matches says the same and offers Clear all, so the customer is one click from the full collection.

Still stuck? Contact support and we will help.