Product stitching
Automatically link related products together — colourways, sibling styles, product families.
Stitching links related products to each other automatically. If the same shirt exists as five separate products — one per colour — stitching connects all five, so each one knows about the other four.
The links are written to a product metafield you nominate, which your theme can then read to render a colour swatch row, a "also available in" strip, or anything else.
📸 Screenshot needed — the Stitching page listing rules with their status, pattern and last sync time.
How it works
A stitching rule has three parts:
A source — the field to read: SKU or Title.
A pattern — a regular expression with a capture group. Whatever the capture group extracts becomes the group key.
A target metafield — where the links get written.
Every product whose source field produces the same group key ends up in the same group. Each product in a group then gets a metafield listing all the other products in it.
An example
Say your SKUs look like this:
1042-BLK-S
1042-BLK-M
1042-NVY-S
1088-GRN-LWith the pattern ^(\d{4})-.*$, the capture group grabs the leading four digits. The first three products all produce 1042 and get stitched together. The fourth produces 1088 and sits in its own group.
Creating a rule
Go to Stitching → New rule.
Name it something you'll recognise later.
Pick the source: SKU or Title. (Tag matching is planned but not available yet.)
Enter the pattern. A starter pattern is filled in for you when you pick a source.
Set the target metafield — a namespace and key. This is where the links are written.
Choose whether to restrict to the same vendor.
Choose whether to auto-sync on publish.
Save.
Writing the pattern
The pattern must be a valid regular expression containing at least one capture group — the bracketed part that extracts the group key. The form validates as you type and tells you if the capture group is missing.
SKU
^(\d{4})-.*$
The first four digits: 1042-BLK-S → 1042
SKU
^([A-Z]+)-\d+$
A leading letter code: SHIRT-001 → SHIRT
Title
^(.+?)\s*-\s
Everything before the first dash: Merino Crew - Navy → Merino Crew
SKU matching uses the product's first variant's SKU. Products with no SKU (or no title, for title matching) are counted as unmatched and left alone.
Same vendor only
With this on, the group key is scoped per vendor: two products that produce the same key but come from different vendors go into separate groups. Useful when supplier codes overlap across brands.
Leave it off if your SKUs are globally unique.
Auto-sync on publish
With this on, the rule runs automatically whenever a product is created or updated in your store — so a newly published colourway joins its group immediately, without waiting for a manual sync.
Testing before you commit
Always run a dry run before syncing. It computes the groups the rule would produce, without writing anything, and reports:
how many groups it found
how many products were matched
the size of the largest group
how many products didn't match the pattern at all
📸 Screenshot needed — the dry run panel showing group count, product count, largest group and unmatched count.
A high unmatched count means the pattern is wrong. If your catalogue has 2,000 products and the dry run matches 40, the pattern isn't reading your SKUs the way you assumed.
An enormous single group also means the pattern is wrong. If one group contains most of your catalogue, the capture group is grabbing something every product shares. Groups above 250 products are flagged as oversized; groups are hard-capped at 2,000 links per product.
Groups of one are ignored — a product with no siblings gets nothing written.
Running a rule
Bulk sync runs the rule across your whole catalogue and writes the metafields. The page shows a live status while it runs and records the result.
The rule detail page also warns you when a rule has been edited since its last sync, so you know the written links are out of date.
Bulk sync is not available on the Free plan. Auto-sync on publish and dry runs work, but running a rule across the full catalogue requires a paid plan. See Plans & billing.
Reading the logs
Each rule has a log recording every group synced, every run, and any errors. Use it to confirm the rule is doing what you expect after a sync, and to diagnose products that aren't getting linked.
Using the links in your theme
The links are written to the metafield you nominated, as a list of product references. Your theme (or a developer) reads that metafield on the product page and renders whatever you want — swatches, thumbnails, a text list.
Related pages
Merchandising rulesets — control the order products appear in inside collections.
Plans & billing — bulk sync availability.
Last updated