Comparison Table

Build a comparison view for saved posts or WooCommerce products using the BU Compare feature. Design the information rows in (BU)Compare Items and use add/remove controls to let visitors choose records.

Setup and First Use


Before starting, enable the relevant element or feature family under Bricks → BricksUltimate → General Elements, save, and reopen the Bricks editor. Integrations also require their corresponding plugin to be active.

  1. Enable Compare in General Elements. For product comparisons, activate WooCommerce as well.
  2. Add Add To Compare controls to the source listing and choose the correct Post type.
  3. Create a comparison page or panel and add (BU)Compare Items with the same Post type.
  4. Use Add Contents to define the information shown for each record, such as image, title, text, price, attributes, or another supported element.
  5. Enable Refresh content via AJAX if the view should update when selections change.
  6. Style labels, content cells, widths, pricing, buttons, and navigation. Add an empty-state presentation and test at least two selections.

Controls and Settings


ControlPurpose and usage
Post typeMust match the saved compare controls. A post comparison and a product comparison are separate contexts.
Add ContentsDefines the data rows and their labels. The available content Type determines which fields and styling controls appear.
Refresh content via AJAXRefreshes comparison content when supported compare actions run; it does not convert an unrelated static table into a comparison view.
Cell dimensionsSet content-cell minimum width, width, padding, spacing, and borders. Check horizontal navigation on narrow screens.
Product-specific controlsProduct price formatting, ratings, and add-to-cart selectors require valid product records and the corresponding WooCommerce behavior.
NavigationConfigure the available arrows and display-after setting for the intended layout.

Comparison Is Not a Data Table


Compare Items displays the visitor's chosen records. Use Table for manually designed row/column data, or Table (Grid View) for a searchable sortable table. The full Compare guide covers compare loops, counters, removal, the compare page, and integration details.

Pick Useful, Comparable Fields


Keep labels consistent across products. An attribute missing from one record should not shift the meaning of the next row. Limit comparisons to fields customers can use to make a decision; long descriptions and many full-size images make the interface slow and difficult to scan.

Practical Example


Create a laptop comparison with image, linked title, price, memory, storage, rating, and an add-to-cart row. Select two products from a listing and verify that each row still describes the same property.

Troubleshooting


  • Empty view: save records first and match Post type on every control.
  • Stale content: verify AJAX refresh and the wrapper being updated.
  • Misaligned values: inspect each Add Contents row and missing attribute data.
  • Wrong customer selections: exclude personalized compare output from shared caches.

Related Documentation