🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

WooCommerce Side-by-Side Compare Add-on Setup Guide

Updated 11 min read WooCommerce Store & Checkout
On this page
  1. Video walkthrough
  2. Step 1: Install and Activate Your License
  3. Step 2: The Compare Page
  4. Step 3: Compare Buttons in the Shop, on Product Pages and in Blocks
  5. Step 4: The Floating Compare Bar
  6. Step 5: Choose and Order the Table Rows
  7. Step 6: Highlight Differences and Hide Identical Rows
  8. Step 7: Same-Category Guard
  9. Step 8: Compare Page or Pop-up
  10. Step 9: Share Links
  11. Step 10: Guests and Logged-in Shoppers
  12. Step 11: Colours
  13. Step 12: Most Compared Products
  14. Mobile and Accessibility
  15. License: What Needs an Active Key
  16. Tips for Useful Comparisons
  17. Troubleshooting
  18. The button does not appear
  19. The Compare button of the bar does nothing
  20. A row I expected is missing
  21. The list is empty after switching browsers
  22. Frequently Asked Questions
  23. Does it work with block themes and the product blocks?
  24. Can shoppers compare variations?
  25. Is anything sent to an outside service?
  26. Does it slow down my shop?
  27. Does it change orders?

Video walkthrough

WooCommerce Product Compare: Side by Side Comparison Table & Compare Bar
Watch: add a side by side product comparison to WooCommerce, with Add to compare buttons, a floating compare bar and a comparison table. Watch on YouTube

The WooCommerce Side-by-Side Compare Add-on puts the products a shopper is choosing between side by side. A small “Add to compare” button appears under every product in the shop, on the product page and in the product blocks of your theme. The chosen products collect in a floating compare bar at the bottom of the screen, and one click opens a comparison table with the image, price, rating, stock, SKU, dimensions, weight, every attribute, the short description and an add-to-cart button for each product.

Shoppers can highlight the rows where the products differ, hide the rows where they are the same, remove a product, start again and share the comparison with a link. On a phone the products swipe sideways while the row names stay in place. This guide walks through installation, the compare page, the buttons and the bar, the table rows, the switches, the same-category guard, the pop-up, share links, guests and logged-in shoppers, colours and the “Most compared” report. The examples use one shop throughout: an outdoor store that sells backpacks, tents and rain jackets.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher (tested on 7.4 and 8.3)
  • WooCommerce: Version 8.9 or higher (tested up to 11.2), block themes and classic themes, HPOS on or off
  • Products: simple and variable products; attributes are optional but make the comparison far more useful
  • License: an active GravityExtra license key for the statistics, share links and the pop-up comparison (see the License section)

Step 1: Install and Activate Your License

  1. Download the add-on zip from your GravityExtra account and go to Plugins → Add New → Upload Plugin.
  2. Upload the zip, click Install Now and then Activate. WooCommerce must be active.
  3. Open WooCommerce → Side-by-Side Compare → License, paste your key and click Activate License.

Right after activation the shop already works: every product has a compare button, the compare bar appears as soon as a shopper picks a product, and a page called Compare products has been created for the table. Review the settings below before you tell your customers about it.

Step 2: The Compare Page

On activation the add-on creates a page at /compare/ with the Product comparison block in a wide layout, and selects it in WooCommerce → Side-by-Side Compare → Settings → Compare page. The page is an ordinary page: change its title, add an introduction above the block, or move it in your menu. In the page list it carries the label “Compare page” so nobody deletes it by accident.

To use another page, open it in the editor, add the Product comparison block (in the WooCommerce category of the block inserter) and choose the page in the setting. A chosen page without the block still works: the table is shown after the page text. If the page was deleted, the settings screen offers a Create the compare page button.

Step 3: Compare Buttons in the Shop, on Product Pages and in Blocks

The Buttons and compare bar card decides where the button appears and what it says.

  • Button text and Button text when added — for example “Add to compare” and “Added to compare”. A second click on an added product removes it again, so the button works like a switch; screen readers hear it as a pressed or not pressed button.
  • Shop and category pages — the button under each product in the shop, category and tag archives, search results and related products.
  • Product blocks — the button inside the Product Collection block (used by the shop templates of block themes), the All Products block and the product grid blocks such as Hand-picked Products, Best Selling Products and Products by Category.
  • Position in product lists — after or before the add-to-cart button.
  • Single product page and Position on the product page — after the add-to-cart form, before it, or after the SKU and categories.
A WooCommerce shop grid of six outdoor products with an Add to compare or Added to compare button under each add-to-cart button, and a floating compare bar at the bottom with three backpack thumbnails, an empty place, the text 3 of 4 products, a Clear link and a Compare button
Compare buttons under every product and the floating compare bar with the chosen products, a counter and the Compare button.

Variable products can be compared as a whole: the table shows their price range and all values of their attributes, and the add-to-cart cell becomes “Select options” so the shopper chooses the size or colour on the product page.

Step 4: The Floating Compare Bar

As soon as a product is added, a bar slides in at the bottom of the screen. It shows a thumbnail of each chosen product with a small remove button, empty places up to the maximum, a counter such as “2 of 4 products”, a Clear link and the Compare button. Compare needs at least two products; with one product the bar says so instead of opening an empty table.

Products per comparison sets the maximum, from 2 to 8. Four suits most shops: four columns fit a laptop screen and stay readable on a phone. When the list is full, the next button press shows “You can compare up to 4 products. Remove one first.” Switch off Compare bar if your theme already has a sticky footer; the buttons and the compare page keep working, and shoppers reach the page from your menu.

Step 5: Choose and Order the Table Rows

Open the Table rows tab. Each row of the comparison has a Show checkbox, a Label field and two arrows to move it up or down. The rows are:

  • Image and Product (the linked product name)
  • Price — with sale prices and price ranges as in your shop
  • Rating — stars, the average and the number of reviews, or “No reviews yet”
  • Availability — in stock (with the quantity when you manage stock), out of stock or on backorder
  • SKU, Dimensions and Weight — in your store units
  • Attributes — one row for each attribute used by the compared products, global attributes such as Colour and custom ones such as Material or Capacity
  • Description — the product short description
  • Add to cart — adds simple products straight to the cart; other products link to their page

Rename a row by typing a new label, for example “In the warehouse” instead of “Availability”. Rows that have no value for any of the compared products are left out automatically, so a tent and a backpack never show an empty “Laptop sleeve” row unless one of them has it. The arrows can be used with the keyboard; each move is announced to screen readers.

A WooCommerce product comparison table with three backpacks side by side: Ridgeline 32L Daypack, Summit 45L Trekking Pack and Canyon 38L Travel Pack, with rows for image, product, price, rating, availability, SKU, dimensions, weight, colour, material, capacity, rain cover, laptop sleeve, description and add to cart; the differing rows are highlighted in yellow and the identical Rain cover row is not
The comparison table with Highlight differences switched on: every row where the backpacks differ is tinted, the identical Rain cover row stays white.

Step 6: Highlight Differences and Hide Identical Rows

Above the table two switches help the shopper decide. Highlight differences colours every row where the products do not have the same value, so the eye goes straight to price, capacity or weight. Hide identical rows removes the rows that are the same for every product, which shortens a long table to the few lines that matter. The comparison ignores letter case, spaces and formatting, so “Recycled nylon” and “recycled nylon” count as the same.

In the settings you choose whether each switch starts on or off. Many shops start with highlighting on and hiding off, so shoppers see everything with the differences marked.

Step 7: Same-Category Guard

Comparing a tent with a backpack rarely helps anyone. Tick Same category only and a product can join the list only when it shares a category with the first product in it. When a shopper tries to add a product from another category, a short message explains that only products from the same category can be compared and that clearing the list starts a new comparison. The guard also applies to the table itself, so an old list or a link cannot mix categories either.

Step 8: Compare Page or Pop-up

Open the comparison decides what the Compare button of the bar does. On the compare page takes the shopper to the compare page. In a pop-up on the same page opens the table in a dialog over the shop, so the shopper stays where they were browsing. The pop-up has a heading and a close button, keeps the keyboard focus inside while it is open, closes with Escape or a click outside, and returns the focus to the Compare button. The pop-up needs an active license; without it the compare page is used.

On the compare page a Share button shows a link to the current comparison with a Copy link button. The link holds the product ids, so it can be sent by message or e-mail, posted in a forum or saved for later. Anyone who opens it sees the same products, even on another device, and can keep them as their own list with Use this comparison. Shared comparisons tell search engines not to index them, so they never compete with your product pages. Share links need an active license.

Step 10: Guests and Logged-in Shoppers

Guests do not need an account. Their list is kept in the browser (local storage and a cookie), so it survives page loads and visits, and the compare page can be built by the server even before any script runs. For logged-in customers the list is also saved on their account, so it follows them from the laptop to the phone. When a guest with a list logs in, their products are added to the list already saved on the account, up to the maximum.

Step 11: Colours

The Colours card has four colour pickers: the button background, the button text, the compare bar background and the colour of highlighted differences. The defaults are neutral and work with most themes; pick your brand colour for the button and a soft tint for the highlight.

The Buttons and compare bar settings of Side-by-Side Compare: button text Add to compare, button text when added Added to compare, shop and category pages, product blocks, position in product lists after the add-to-cart button, single product page, position on the product page after the add-to-cart form, and the compare bar switch
WooCommerce → Side-by-Side Compare → Settings: button texts, where the button appears, its position and the floating compare bar.

Step 12: Most Compared Products

The Most compared tab lists the twenty products shoppers added to a comparison most often, with the number of times, the last time and the total sales of each. A product that is compared a lot but sells less than the products next to it usually needs a clearer description, better photos, a missing attribute or a sharper price. Reset statistics starts counting again, for example after a sale. Statistics need an active license.

Mobile and Accessibility

On a phone the table keeps its columns: the first column with the row names stays in place while the products swipe sideways, so a shopper always knows which line they are reading. The bar shrinks its thumbnails, and the pop-up fills the screen. Everything works with a keyboard: the buttons are real buttons with a pressed state, the table has column and row headers, the scrolling area can be focused and moved with the arrow keys, and every change to the list is announced politely to screen readers.

License: What Needs an Active Key

Without an active license the core comparison keeps working, so a lapsed key never breaks your shop: the buttons, the compare bar, the compare page, the rows and both switches, the same-category guard and the lists of guests and customers. Three features pause until the key is active again: the Most compared statistics, share links and the pop-up comparison. The settings screens then show a notice with a link to the License tab.

Tips for Useful Comparisons

  1. Fill in your attributes. A comparison is only as good as its data. Capacity, material, size and weight as attributes beat the same facts hidden in a paragraph.
  2. Use global attributes for shared facts. A global Colour or Material attribute gives every product the same wording, so “Hide identical rows” works reliably.
  3. Keep the short description short. Two lines per product read well in a column; long text makes the table tall.
  4. Turn on the guard in mixed shops. Stores that sell very different things get cleaner comparisons with the same-category guard.
  5. Check the report monthly. The most compared products are the ones customers hesitate over; small improvements there pay back quickly.

Troubleshooting

The button does not appear

Check that the matching switch is on (shop pages, product blocks or the product page) and that the product is published. Private, draft and password-protected products cannot be compared. Some page builders render products without the usual WooCommerce hooks; place the shop or product blocks in those layouts.

The Compare button of the bar does nothing

Compare needs at least two products. If there are two or more, make sure a compare page is selected in the settings or switch to the pop-up.

A row I expected is missing

Rows without a value for any compared product are left out, and rows hidden in the Table rows tab never appear. Attributes appear only when they are visible on the product page or used for variations.

The list is empty after switching browsers

Guest lists stay in the browser where they were made. Log in to keep the list on your account across devices, or send yourself a share link.

Frequently Asked Questions

Does it work with block themes and the product blocks?

Yes. It works with block themes such as Twenty Twenty-Five and with classic themes, including the Product Collection, All Products and product grid blocks.

Can shoppers compare variations?

A variable product is compared as one product: its price range and all of its attribute values are shown. The shopper picks the exact variation on the product page.

Is anything sent to an outside service?

No. Lists are kept in the shopper’s browser and, for customers, on their account in your own database. The add-on makes no calls to outside services apart from the license check.

Does it slow down my shop?

The front-end script is small and has no dependencies. The table is built only when a shopper opens it, and the buttons need no extra database queries per product beyond what WooCommerce already loads.

Does it change orders?

No. The add-on never reads or writes orders, so it is safe with high-performance order storage on or off.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr