E-commerce 0.1.9: A search box for the shop catalog
E-commerce 0.1.9 lets customers search the shop. A search box at the top of the storefront filter sidebar finds products by name, description, SKU and tags, on the main catalog page and on category pages.
Search in the storefront
The search is a new built-in filter type, search, shown with the label Search. It matches a product’s name and description in any of the site’s languages, the sku value in its metadata, and its tags. The term goes into the address as ?search=, so a results page can be shared and survives moving between pages. A blank search removes the filter.
The admin product search now matches SKUs and tags as well, so a product can be found by its article number.
Upgrading
No migration. New installs get the search filter turned on. On an existing shop, open the shop settings: the Storefront Filters table lists the new search filter, turned off, and one switch turns it on. Until then the storefront does not change. Once on, it sorts above the filters you already have.
Full release notes: E-commerce 0.1.9
0.1.9 · 11 July 2026
Added
- Storefront product search. A new built-in
searchfilter type lets customers search the public catalog (main page and category pages) by product name, description, SKU (metadata->>'sku'), and tags — matching in any configured language. Renders as a search box at the top of the storefront filter sidebar, driven by a?search=URL param so results are shareable and survive navigation. Enabled by default for new installs; existing installs discover it on the Settings page (merged in disabled viamerge_missing_builtin_filters/1) and enable it with one toggle. - Context:
list_products/1:searchnow also matches SKU and tags (previously title/description only), so admin product search finds products by article number too.
Fixed
- Storefront search no longer raises
ambiguous_column. The:searchSQL fragment referenced unqualifiedtitle/descriptioncolumns, which turn ambiguous the moment:exclude_hidden_categoriesjoins the categories table — the exact combination every public catalog query uses. Columns are now bound through the product binding. Pinned by a regression test. merge_missing_builtin_filters/1no longer collides positions. A saved config from beforesearchexisted can already hold another filter at the same default position (e.g.priceat0); the merged-in filter now sorts strictly below every saved filter’s position instead of reusing its default position outright, so it renders first once enabled as intended, even on upgraded installs.
E-commerce 0.1.9. Install or update: {:phoenix_kit_ecommerce, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.