Project portfolio Browse selected work

Shopify Plus Upgrade Monthly Fee Reduction + Up to $4800 Development Fee Credit - Exclusive WesWoo Offer

Search
Galleries & detail viewing

Shortlist and compare products

Select one item, then two, then attempt a third. Inspect comparison eligibility, limit feedback and recovery after deselection.

Fill both comparison slots, try a third and remove one selection. If the table retains the removed model, inspect whether it reads the same selection state.

One selection left comparison disabled. Selecting Sky and Rose enabled it and produced those two named products.

Reproduce the test and inspect the readings

Select one item, then a second, check button availability and open the result to read both product names.

908 and 316 px, both preferences
disabled then enabled then Sky tee / Rose tee

WESWOO loaded this example’s published HTML, CSS and JavaScript in standalone Chrome at 700 px viewport height. Both motion preferences were tested at each width.

2026-11-24 · Chrome 157.0.8103.79

Download test conditions and raw readings (JSON)

View the phone and desktop observations

WESWOO · 24 November 2026. We enabled reduced motion at phone width and used the default motion setting at desktop width. These observations come from the live example.

Window / preview widthActionObserved result
390 / 316 pxSkyPreviously “0 of 2 selected”. The interface showed “1 of 2 selected”.
1440 / 908 pxSkyPreviously “0 of 2 selected”. The interface showed “1 of 2 selected”.

Preparing preview

How the effect works

Align the same attribute on one row

Select two items and open the comparison. Read each shared attribute across one row.

Example source code

View 3 source filesHTML · CSS · MJS
product-shortlist-compare.html
<section class="fx compare-demo" lang="en" aria-label="Shortlist comparison demo">
  <h2>Compare two products</h2>
  <p class="intro">Select two tees to compare their sample specifications.</p>
  <div class="shortlist" role="group" aria-label="Products to compare"><label><img class="product-photo" src="__WW_VISUAL_1__" alt=""><span><input type="checkbox" data-option="1"> Sky</span></label>
<label><img class="product-photo" src="__WW_VISUAL_2__" alt=""><span><input type="checkbox" data-option="2"> Rose</span></label>
<label><img class="product-photo" src="__WW_VISUAL_3__" alt=""><span><input type="checkbox" data-option="3"> Sage</span></label></div>
  <p class="status" role="status" data-selected>0 of 2 selected</p>
  <button type="button" class="primary compare-action" data-compare disabled>Compare selected</button>
  <div class="panel compare-result" hidden>
    <table><caption tabindex="-1">Sample specifications</caption><thead><tr>
      <th scope="col">Feature</th><th scope="col" data-name></th><th scope="col" data-name></th>
    </tr></thead><tbody>
      <tr><th scope="row">Color</th><td data-value></td><td data-value></td></tr>
      <tr><th scope="row">Sample fit</th><td data-value></td><td data-value></td></tr>
      <tr><th scope="row">Sample price</th><td data-value></td><td data-value></td></tr>
    </tbody></table>
    <button type="button" data-edit>Edit selection</button>
  </div>
</section>

Integration and checks

Theme integration

3 steps
  1. Duplicate the theme

    Integrate and preview the example in a duplicate theme.

  2. Connect the section settings

    Replace demo copy and artwork with section settings and scope the styles to that section.

  3. Connect the editor lifecycle

    Use the lifecycle script for editor reloads, pausing offscreen and cleanup on unload.

Placement

  • Collections where shoppers compare fit, materials or technical specs.

Interaction

  • Limit the shortlist to two items and populate a common set of comparison fields.

Touch and accessibility

  • Use checkboxes and a semantic table. Move focus to the table when it opens.

Setup notes for this effect

Generate the rows from common product metafields and keep it easy to replace a selection.

Before launch

Integration files
sections/ww-effect.liquid
{% comment %} WESWOO example shell. Add ONE effect's HTML inside .fx-slot. {% endcomment %}
{{ 'ww-effects.css' | asset_url | stylesheet_tag }}
<section id="ww-effect-{{ section.id }}" data-ww-effect-section>
  <h2>{{ section.settings.heading | escape }}</h2>
  <button type="button" data-effect-toggle aria-pressed="false">Play / pause effect</button>
  <div class="fx-slot">
    {% comment %} Insert the chosen .fx element here; read copy/images from section settings. {% endcomment %}
  </div>
</section>
<script type="module" src="{{ 'ww-effect-section.js' | asset_url }}"></script>
{% schema %}
{"name":"WESWOO effect","settings":[{"type":"text","id":"heading","label":"Heading","default":"Our story"}],"presets":[{"name":"WESWOO effect"}]}
{% endschema %}

Insert the selected effect into the shell. Each module loads one effect; multiple types need an explicit registry and Section mapping.

Sources and further reading

Scope and licensing

Examples are authored by WESWOO and credited open-source contributors; retain their applicable licenses. Project screens and photographs remain with their rights holders. Downloads use placeholders; replace them with imagery you may use.

Shopify/dawn · modal / slider base classesShopify/dawn · product media galleryShopify/dawn · license

References checked · 2026-11-24