{"title":"Taxons Controller - Liquid Controller Reference","slug":"taxons-controller-reference","url":"https://support.storeconnect.com/articles/taxons-controller-reference","url_markdown":"https://support.storeconnect.com/articles/taxons-controller-reference.md","subtitle":null,"summary":"The Taxons Liquid controller displays product category pages via `show` and checks search readiness via `check_search_ready`, rendering the `product_category` Liquid page.","type":"Developer_Documentation","video_url":"","keywords":"liquid, controllers, Taxons, storefront, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nThe Taxons controller handles requests related to taxons functionality in your StoreConnect storefront.\n\n| Property | Value |\n|----------|-------|\n| **Controller** | `TaxonsController` |\n| **Liquid Template Path** | `controllers/taxons/` |\n\n## Actions\n\n| Action | HTTP Method | Route | Liquid Page |\n|--------|-------------|-------|-------------|\n| `show` | GET | `/taxons/:id` | `product_category` |\n| `check_search_ready` | GET | `/taxons/check-search-ready` | — |\n\n## Liquid Controller Lifecycle\n\nFor each action, Liquid controller templates are executed in three phases:\n\n1. **Before** — `controllers/taxons/{action}.liquid` runs before the Rails action\n2. **After** — runs after the Rails action but before the response is sent\n3. **Final** — runs after the response, useful for cleanup\n\n## Available Liquid Tags\n\nInside controller templates, these tags are available:\n\n| Tag | Description |\n|-----|-------------|\n| `{% params %}` | Set request parameters (e.g. `{% params foo: \"bar\" %}`) |\n| `{% variables %}` | Set template variables (e.g. `{% variables title: \"Hello\" %}`) |\n| `{% respond %}` | Respond with custom content, alert, or notice |\n| `{% redirect %}` | Redirect the request (e.g. `{% redirect to: \"/products\" %}`) |\n| `{% action %}` | Execute a server-side action (e.g. `{% action \"cart.add\" %}`) |\n\n## Example\n\nCreate a file at `controllers/taxons/show.liquid`:\n\n\n```liquid\n\n{% before %}\n  variables custom_heading: \"Welcome\"\n{% endbefore %}\n```\n"}