Customers shouldn't have to open several tabs just to compare similar products. Instead, a product comparison table puts all that information in one place.
You can add a product comparison table to Shopify without installing an app. For a simple comparison, Shopify's built-in rich-text editor may be enough. If you need more control over the layout, you can use Custom Liquid or connect product information through metafields.
And if you want customers to choose which products to compare, a dedicated comparison app may be a better option.
We'll walk through these methods using Shopify's Dawn theme and three fictional backpacks. Other themes may have their own comparison features, but Dawn doesn't include a built-in tool that lets shoppers select products for side-by-side comparison.
Key Takeaways
- Comparing a few products? Start with Shopify's built-in table editor. It's a straightforward option when you don't mind updating the information manually.
- Want more control over the design? Custom Liquid lets you build a comparison table with HTML, including proper column headings and horizontal scrolling on mobile.
- Need product details to stay up to date? Metafields can store specifications for individual products, but you'll still need a theme or app to display them in a comparison table.
- Want customers to choose what they compare? Look for a comparison app that lets shoppers select products rather than showing them a fixed table.
- Make the information accurate. Be clear about which variant a price refers to, use consistent measurement units, and don't leave customers guessing when a specification is missing.
- Test the table on mobile. Make sure shoppers can read the specifications and tell which product each value belongs to, even when scrolling across the table.
Which Type of Shopify Product Comparison Table Should You Use?
For a small, stable product range, a simple table is usually enough. If specifications change frequently, consider connecting the table to product data. Larger catalogs may benefit from an app that lets customers choose what to compare.
The main consideration is how much work the table will require after you publish it. Manually entering specifications is manageable for a few products, but keeping dozens of prices and attributes accurate can quickly become a chore.
Here's how the options compare:
Before choosing a method, also consider what you're comparing.
A size chart helps customers choose between sizes of the same product. A product comparison table should show meaningful differences between models, using consistent attributes and measurement units.
Otherwise, even a well-designed table can leave shoppers with more questions than answers.
Which Products and Attributes Belong in the Comparison?
Compare products that serve a similar purpose, focusing on specifications that could influence which one a customer buys. Keep measurement units consistent and check every detail against the actual product information.
For example, let's compare three fictional travel backpacks. The names, measurements, and prices below are illustrative and don't represent real products or PagePilot merchants.
The Weekender offers the most storage, but it's also the heaviest and most expensive. Someone who only needs a backpack for daily commuting might find the smaller Metro more practical.
A useful comparison makes these trade-offs obvious without telling customers which product they should prefer.
The specifications you include should reflect what people need to know about that particular category.
For electronics, compatibility and included accessories might influence the decision. Furniture buyers will likely care more about dimensions and materials.
Avoid vague labels such as best quality or most comfortable unless you have evidence to support them. They don't tell customers much about how the products differ.
And if a supplier hasn't provided a specification, write Not specified rather than No. Missing information doesn't necessarily mean a product lacks the feature.
How to Add a Shopify Comparison Table Without an App
The easiest way to add a product comparison table without an app is through Shopify's built-in rich-text editor. You can place it in a product description or create a separate comparison page.
Here's how:
In Shopify admin, go to Products and open the product you want to edit. If you'd prefer a dedicated comparison page, go to Online Store → Pages.
In the Description editor, place your cursor where you want the table and select Insert table → Insert table.
Shopify starts with a single cell. Use the table controls to add the rows and columns you need. For our backpack example, that's four columns: one for specifications and three for the models.
Enter your verified product details, save, and check how the table looks on mobile.
Shopify explains these controls in its rich-text editor guide.
There's one limitation to keep in mind: the table stays wherever you add it.
If you place it in the Metro 18 product description, it won't automatically appear on the Transit 26 or Weekender 34 pages.
You can copy the table into their descriptions, but you'll also need to update every copy whenever a price or specification changes.
Check That the Table Is Accessible
A table can look perfectly fine while still being difficult to navigate with a screen reader.
Product names and specification labels should be marked as table headers so customers can tell which values belong together.
Shopify's editor includes an Edit code option where you can inspect the HTML and check how the table is structured.
If the editor or your theme doesn't support a readable, accessible layout, consider using Custom Liquid for more control.
For a small comparison that rarely changes, the rich-text method is usually enough. You only need a more advanced setup when maintaining the table or controlling its layout becomes difficult.
How to Add an HTML Comparison Table With Dawn's Custom Liquid Section
Shopify's Dawn theme lets you add an HTML comparison table using Custom Liquid, without installing an app or editing theme files. You get more control over the table's layout, including how its headings and columns behave on mobile.
Start by duplicating your theme so you can test the changes before publishing.
Then follow these steps:
Go to Online Store → Themes → Edit theme.
Open Products and select the product template you want to edit.
Click Add section → Custom Liquid.
Move the section to where you want the comparison to appear.
Paste the HTML and CSS below, save, and preview the result.
Dawn supports this through its built-in Custom Liquid section.
Example: A Backpack Comparison Table
Here's a simple HTML table comparing the capacity and laptop compatibility of our three fictional backpacks.
The code uses static values, so prices and specifications won't update automatically. It's also an illustrative example, not code verified on a live store.
<div class="pp-model-compare" role="region"
aria-label="Backpack model comparison" tabindex="0">
<table>
<caption>Compare the backpack models</caption>
<thead>
<tr>
<th scope="col">Feature</th>
<th scope="col">Metro 18</th>
<th scope="col">Transit 26</th>
<th scope="col">Weekender 34</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Capacity</th>
<td>18 L</td>
<td>26 L</td>
<td>34 L</td>
</tr>
<tr>
<th scope="row">Laptop fit</th>
<td>Up to 13 in</td>
<td>Up to 15 in</td>
<td>Up to 16 in</td>
</tr>
</tbody>
</table>
</div>
<style>
.pp-model-compare {
max-width: 100%;
overflow-x: auto;
}
.pp-model-compare table {
min-width: 620px;
width: 100%;
border-collapse: collapse;
}
.pp-model-compare th,
.pp-model-compare td {
border: 1px solid #aaa;
padding: 12px;
text-align: left;
}
.pp-model-compare th:first-child {
position: sticky;
left: 0;
background: #fff;
z-index: 1;
}
.pp-model-compare:focus-visible {
outline: 2px solid currentColor;
}
</style>
The code includes a few useful features:
- Clear table headings: The <caption> describes the comparison, while <th> elements identify the products and their specifications.
- Horizontal scrolling: On smaller screens, customers can scroll across the table instead of having the columns squeezed together.
- A fixed first column: Specification names remain visible as customers scroll horizontally.
The heading structure follows W3C's accessible table guidance.
You'll still need to test the styling in your theme. In particular, check that the white background on the first column works with your store's colors and that the borders remain easy to see.
Check Which Products Use the Template
A Custom Liquid section belongs to the product template, not necessarily to one individual product.
If you add this comparison to Dawn's Default product template, other products using that template may display the same table.
Preview one of your backpacks and an unrelated product before publishing.
You can create a separate product template if the comparison should only appear on certain pages. Just remember that templates created in an unpublished theme can be previewed there, but won't appear as assignment options in the product editor until the theme is published.
Shopify explains this in its product template guide.
If something doesn't work, you can remove the Custom Liquid section from your draft theme or return to the untouched copy.
And if you later edit the theme's underlying files, Shopify's code editor Timeline can help restore previous versions of individual files. It isn't a backup of the entire theme.
How Can Shopify Metafields Keep Comparison Data Current?
Shopify metafields let you store product specifications in one place and reuse them in comparison tables. When a specification changes, you update the product's metafield instead of editing every table where it appears.
You'll still need Liquid code or a compatible app to turn that information into a comparison table.
1. Create Metafields for Your Product Specifications
In Shopify admin, go to Settings → Metafields and metaobjects → Product metafields.
For our backpack comparison, create two fields:
- custom.capacity_liters: Integer, for storing capacity values such as 18, 26, or 34.
- custom.laptop_fit: Single-line text, for specifications such as "Up to 15 in."
Next, open each backpack under Products, enter its specifications, and save.
Remember that storing 18 in the capacity field doesn't automatically display "18 L." Your table needs to add the unit when showing that value.
2. Choose Which Products to Compare
Create another product metafield using the List of products type. Name it something like custom.compare_models.
On the product page where you want the comparison to appear, add Metro 18, Transit 26, and Weekender 34 to that list.
This tells Shopify which products belong in the comparison. Their individual metafields provide the specifications.
3. Connect the Data Using Liquid
A developer can use Shopify Liquid to retrieve the selected products and their stored values.
Here's a simplified example:
{% assign compared_products = product.metafields.custom.compare_models.value %}
{% for compared_product in compared_products %}
{{ compared_product.title | escape }}
{{ compared_product.metafields.custom.capacity_liters.value }} L
{% endfor %}
In this code, product refers to the page being viewed. The loop then retrieves each product selected in its comparison list.
This isn't a complete comparison table. It only shows how to retrieve product names and specifications.
The full implementation needs to arrange those values into the correct columns and rows.
It should also handle missing information properly. If a product reference is invalid, don't create an empty column. If a specification hasn't been confirmed, show Not specified rather than leaving customers to guess.
Shopify's metafield display guide and Liquid metafield reference explain how developers can access this data.
4. Make Sure Prices Match the Products Being Compared
Be careful when pulling prices automatically. Shopify's product.price returns the lowest variant price, which may not be the price of the configuration you're comparing.
Say the Transit 26 costs $99 in its standard version but $119 with additional accessories.
If your table compares the general backpack models, From $99 would be appropriate.
But if you're comparing the version with accessories, the table should show its actual $119 price.
Dynamic tables should retrieve prices from the correct product or variant and use Shopify's money-formatting filters so the displayed amounts reflect the customer's market.
For more examples of working with product data, see PagePilot's Shopify Liquid code examples.
When Is a Product Comparison App the Better Route?
A comparison app makes sense when you want customers to choose which products to compare. For a fixed chart showing a few selected models, Shopify's built-in options are usually enough.
If you have a larger catalog, though, letting shoppers create their own comparisons can be more practical.
Two apps worth considering are Compareder – Product Compare and Snap Compare.
Compareder offers a free Lite plan with comparison buttons and variant support. Its $8.99/month Enterprise plan adds support for product metafields.
Snap Compare also has a free option, allowing customers to compare up to three products using basic attributes. Its $4.99/month Unlimited plan supports custom metafield attributes.
These features and prices come from Shopify App Store listings checked on November 16, 2026. They may change, and neither app has been independently tested here.
Before installing one, check whether it works with your theme and review the permissions it requests. It's also worth finding out what happens to comparison buttons or saved selections if you later uninstall the app.
Test the comparison feature on a phone and with a keyboard, especially if it adds a floating button that follows customers around the page.
For our three-backpack example, you don't need an app. But if shoppers regularly need to compare different products from a larger selection, giving them control over the comparison may be worth the additional cost.
How Do You Make a Shopify Product Comparison Table Readable on Mobile?
Let customers scroll sideways through the table instead of squeezing every column onto a phone screen. The text should remain readable, and shoppers should always be able to tell which product and specification they're looking at.
For our backpack comparison, try scrolling all the way to the Weekender 34. Can you still tell that 34 L refers to capacity?
Keeping the specification column visible while the rest of the table scrolls can help. Just make sure it doesn't overlap other content and that its background and text remain easy to read.
Don't remove important specifications or hide products simply to make the table fit a smaller screen.
If you're using custom HTML, keep proper table headers (<th>) and a caption so screen readers can interpret the comparison. Keyboard users should also be able to reach and scroll the table.
Pay attention to product links, too. A link labeled View Transit 26 tells customers where they're going, while several identical View product links are less helpful. When publishing, link to your actual products rather than using made-up URLs.
Finally, check how the table handles long product names, missing specifications, and different variant prices.
If you're comparing specific variants, the specifications and prices must match those exact variants. Showing the standard backpack's capacity alongside the premium version's price could mislead customers.
Test the finished table on a phone before publishing, including its last column. Customers should be able to read the entire comparison without losing track of what the numbers mean.
How Do You Maintain and Troubleshoot a Comparison Table?
Start by checking where your comparison table gets its information. A manually entered table, a metafield-driven comparison, and an app-generated table all need different fixes.
Here are some common problems and what to check:
- The price is outdated. If you entered it manually, update every page where the table appears. For a dynamic table, check that it's pulling the price from the correct product or variant.
- A specification is missing. Check whether the product has a saved metafield value and that your Liquid code uses the correct namespace and key.
- An entire product column has disappeared. Make sure the product reference is still valid and that the product is available to display.
- The table appears on unrelated products. Check which products use the same template. A comparison added to a shared template may appear on every product assigned to it.
- The table looks broken on mobile. Inspect the scrolling container and theme CSS before removing columns or shortening important information.
- Something stopped working after a theme update. Compare the updated theme with your backup and check whether any custom code or app integration needs attention.
It's also worth deciding who's responsible for keeping the comparison accurate.
If someone updates a backpack's dimensions, changes its available variants, or adjusts its price, the comparison should be checked as part of that update.
For manually maintained tables, that means reviewing each copy. A properly connected metafield table can reduce duplicate work, but it still depends on accurate product data.
Don't treat the comparison table as something you only check when you first publish it. Outdated specifications can be just as misleading as incorrect ones.
Build the Comparison Around a Real Buying Question
Start with the products customers have trouble choosing between. Check their specifications in Shopify, use the simplest comparison method that meets your needs, and test the finished table on mobile before publishing.
If you're also redesigning your product pages, PagePilot's AI product-page generator can help create editable layouts with comparison sections.
Keep in mind that PagePilot doesn't advertise automatic synchronization of specifications across multiple products or a feature that lets shoppers build their own comparisons. Those functions require a separate setup.
For more ways to improve your pages, explore our Shopify product page customization guide and product page examples.
A useful comparison doesn't need to be complicated. It needs to show the differences customers care about, using information they can trust.




