Specification tables and compare
Chisel shows product specifications as grouped tables. Shoppers can also compare up to four products side by side. This guide covers where the tables appear, how to set them up, and how the compare feature works for shoppers and for you.
Before you begin
- Fill in the specifications metafield for each product. The field format and the key names are in the product data guide.
- You can also add rows by hand with the Specification row block. Use that route when a product has no metafield.
- Compare needs at least two products. Shoppers choose products on the collection page or on the product page.
Where the specification tables appear
The theme shows the specification tables in two places.
- In the product information section. Add the Specifications block to the product template. It shows the table next to the product details. Its settings are Heading (default: "Specifications") and Rows before Show all (default: 8).
- In a full-width section. The Specifications section (the
product-specificationssection) shows the tables across the full page width. On desktop it places two groups side by side. The section's Heading setting is the title above the tables.
The product template includes the Specifications section by default. If a product has no specifications metafield, the section does not show.
Set up the specification tables
- Open a product in the Shopify admin.
- Add the specifications metafield, as described in the product data guide.
- Save the product and open its storefront page. Confirm that the table appears.
- In the theme editor, open the product template and check the Specifications section and block settings.
Limit the rows before the Show all control
Long tables stay short by default. Each group shows its first rows. The rest sit behind a Show all specifications control.
- Open the Specifications block in the product information section.
- Change Rows before Show all. The default is 8.
- Save.
The full-width Specifications section has the same setting. Open that section and change Rows before Show all. It works the same way as the block setting, and the default is 8.
Units and values
Keep the unit in the value text, such as "18 V" or "2.4 kg". The theme prints the value as written.
Compare products
Compare lets a shopper pick up to four products and read their details side by side.
Turn compare on or off
- Open the theme settings and go to the Trade features group.
- Turn Show product compare on or off. It is on by default.
- Open Prices, then Product cards. Turn Show compare on or off. It is on by default.
When compare is off, the compare checkboxes, the tray button and the bottom bar do not show.
What the shopper does
- On a collection page, the shopper selects Compare on one or more product cards. Only product cards in the grid show the checkbox. The list view does not show it.
- The collection toolbar shows a Compare tray button with the number of selected products. The tray button appears once one product is selected.
- When two or more products are selected, a bar at the bottom of the page appears. The shopper selects it to open the comparison.
- The comparison shows up to four products in one table. The theme merges the detail rows by group and label.
- Values that differ between products are highlighted with the highlighter color. The shopper can remove a column or add all products to the cart.
The shopper's selection is saved in the browser. It is not shared with other shoppers. The limit is four products. When four are selected, a fifth checkbox does not add a product. The theme announces that the list is full to screen readers.
Compare with similar on the product page
The Compare with similar section appears on the product page. It shows up to three products that can be compared with the current product.
The section uses one of two rules:
- If the current product has a compare group value, the section shows products with the same compare group value.
- If the product has no compare group value, the section shows products of the same product type.
Products listed in the product's accessories metafield are left out of this section.
To set up compare groups:
- In the Shopify admin, open the product.
- Add the Compare group metafield with the key
custom.compare_group. Use a single line text value. - Enter the same value on each product that should be compared with the others. For example, use
cordless-drillson all cordless drills.
The compare group key is fixed. You cannot rename it in the theme settings. The product data guide has the details.
If the section has fewer than two products to show, it does not appear.
Check your setup
- Open a product with a full specifications metafield. Confirm that the table shows its groups.
- Open a product with a long table. Select Show all specifications and confirm the rest of the rows appear.
- On the collection page, select Compare on two products. Confirm the tray button and the bottom bar appear.
- Open the comparison. Confirm that the rows match and that differing values are highlighted.
- Open a product that has a compare group. Confirm that Compare with similar shows products from the same group.
Settings used
- Show product compare (Trade features): turns compare on or off.
- Show compare (Product cards): shows the checkbox on product cards.
- Specifications metafield, Key specifications metafield (Product data): the source of the tables and the card spec line.
- Heading, Rows before Show all (Specifications block).
- Heading (Specifications section).