The "Find at other Sessions stores" panel was showing a wrong-size price for some stores. Root-caused and corrected.
On a product detail page, "Find at other Sessions stores" listed the same item at several stores but with prices like $5.31, $5.09 and $24.34. The $24.34 was not a real price for that item — it was a different pack size being mispriced.
1. Loose product match. If the exact product name wasn't found, the code fell back to "first word matches" (name.includes(firstWord)), which could pick a different product.
2. Wrong-size price. When the store didn't stock the exact size being viewed, the code fell back to the product's variants[0] — the first size on file — and showed that size's price. A store carrying only a larger pack showed the larger pack's price (the $24.34).
The shared cross-store matcher now requires an exact product-name match and the exact same variant (size), in stock. If a store doesn't carry the same size in stock, it isn't a like-for-like comparison, so it's simply not listed — it is never priced from a different size. This same matcher feeds any brand or cross-store price view, so they are all corrected.
| Store | Size | Price (7g) | In stock | OK |
|---|---|---|---|---|
| London | 7g | $40.71 | 14 | ✓ |
| Sudbury | 7g | $40.71 | 20 | ✓ |
| Peterborough | 7g | $40.71 | 4 | ✓ |
| Oshawa | 7g | $40.71 | 8 | ✓ |
Worth knowing: small differences like $5.09 vs $5.31 are legitimate — each Sessions store sets its own base prices and specials, so the same size can vary a little between stores. What's gone is the wrong-size outlier.