Shop / Catalog
The shop page
Activating Shop publishes /shop, which lists published catalog products as a grid or a list. When inventory is set to hide out-of-stock products, those are left off too. A Shop page that already has its own blocks is left alone. Commerce → Shop page sets the product grid:
| Setting | Default |
|---|---|
| Default layout | Grid |
| Visitors can switch grid and list | On |
| Visitors can sort products | On |
Search and the category, tag, price, and sale filters are the Product filters widget in the Shop sidebar widget area, shown on the Shop page. Place it left, right, or above the products under Appearance → Widgets, and add other widgets next to it. Other plugins can add filter widgets that work with the catalog through the URL. Sites that upgraded keep their earlier filter choices as the area's starting widget.
Search and filters run in the browser on the products already loaded. Choosing a parent category includes its subcategories. The price filter compares the shown price, and both it and the "On sale" switch hide themselves when they cannot narrow anything. Active filters show as removable chips with Clear all. The filter state is kept in the address, so a filtered view can be shared:
/shop?category=<slug>&tag=<slug>&q=<text>&min=<n>&max=<n>&sale=1&sort=price-asc