Docs
Page templates

Product comparison page

The Product comparison page of Local builds a comparison table from up to four products a customer selects in the collection grid.

Applies to: Local 4.2.1 and later. Added in: Local 4.1.0. Last checked: 2026-10-13 against Local 4.2.1.

The Product comparison page lets customers build their own comparison. While browsing a collection, they select up to 4 products and open a page that shows them side by side, one column per product and one row per block. For a fixed table with products you pick yourself, use the Product comparison section.

Where to find it: Online Store → Themes → Customize → Collections → Default collection → Product grid → Filtering and sorting → Enable comparing (the switch), and Products → compare → Product comparison (the page)

Local 4.2.1 does not include the compare product template in its theme files, and the theme editor cannot create it: its section cannot be added with Add section. Without it, the Compare button opens the first selected product's normal page. If the template picker has no Products → compare template, contact Krown support.

How customers compare products

With Enable comparing on, the collection page gets a comparison mode:

  • A Compare switch sits next to the filters. When a customer turns it on, every product card gets a compare checkbox.
  • A compare bar appears at the bottom of the screen with the selected products, "X of 4 selected", a Compare button and Clear all.
  • After 4 products, the other checkboxes are disabled and the bar says "You can compare up to 4 products".
  • Compare works from 2 products. It opens the comparison page with the selected products.

The selection is saved in the customer's browser, so it stays while they move between collection pages. The address of the comparison page lists the selected products, so it can be shared.

On the comparison page:

  • Each column has a close (×) button that removes that product.

Product comparison page on the compare template: four products with a close (x) button on each column, a Back to All products link, and the section panel with Show back button highlighted.

  • With one product left, the second column says "Select another item to compare".

Product comparison page with one product left: the second column says Select another item to compare.

  • With no products left, the page shows "No products selected" and a link back to the catalog.

Product comparison page with no products selected: the message No products selected and a Continue browsing button.

Heading

  • Heading and Subheading introduce the page (defaults "Product comparison" and "Compare your products").
  • Show back button (on by default) adds a "Back to All products" link. It returns to the page the customer came from in your store, or to the all products collection when they arrived from elsewhere.

Content

  • Show table headings (on by default) shows the left column with the row labels.
  • Empty fields label is the text of an empty cell (default "-").
  • Media aspect ratio sets the shape of the product images: Natural or cropped to Short (4:3), Square (1:1, default), Tall (5:6) or Taller (2:3).

Table design

Custom background color, Custom text color and Accent (the hover color of buttons and links) color the table. The section background, margins, SEO and visibility are the standard settings, see General section styling.

Table rows

The rows are the same 12 blocks as in the Product comparison section: Description, Price, Quick buy, Vendor, Rating, Local availability, Icons list, Dynamic text, Product link, Nutriscore, Attribute meter and Variants. Each has a Heading for its row label. They are explained in Product comparison section.

Turning on product comparison

Collection page in the theme editor with the Product grid section selected and Enable comparing on: a Compare toggle next to the filters, compare checkboxes on the product cards, and the compare bar at the bottom with 4 of 4 selected, Compare and Clear all.

Check that the compare template exists

In the theme editor, open the template menu at the top and select Products. Look for a template named compare. If it is not there, see the warning at the top of this page before you continue.

Turn on comparing in the collection grid

Open Collections → Default collection, select the Product grid section and turn on Enable comparing under Filtering and sorting. Save.

Repeat for your other collection templates

If you use more collection templates, open each one and turn on Enable comparing there too. Only the collection page's Product grid has this switch; search results and other product grids do not.

Set up the comparison table

Open Products → compare and pick any product to preview the page. Select the Product comparison section and add the row blocks you want (for example Vendor, Price, Local availability and Product link). Drag them into order and set each Heading.

Test it on the storefront

Open a collection page, turn on the Compare switch, select two or more products and select Compare in the bar at the bottom.

Why is there no compare option on my collection page?

Because Enable comparing is off in that collection template's Product grid. It is off by default and set per template, so a collection that uses another template needs it turned on there too. The switch also stays hidden on a collection with no products.

Why is the Products → compare template missing?

Because the Local 4.2.1 release does not ship it, and the theme editor cannot create it: a template made with Create template copies the default product page, and the comparison section cannot be added to it. Contact Krown support for the template. Until it is in your theme, the Compare button opens the first selected product's normal page.

Does the comparison keep the products when the customer leaves the page?

Yes. The selected products and the state of the Compare switch are saved in the customer's browser, so they are still there on other collection pages and on a later visit with the same browser. Clear all in the compare bar empties the selection.

All Product comparison page settings

Every setting, with its type and default.

On this page