{"title":"Accounts Orders Controller - Liquid Controller Reference","slug":"accounts-orders-controller-reference","url":"https://support.storeconnect.com/articles/accounts-orders-controller-reference","url_markdown":"https://support.storeconnect.com/articles/accounts-orders-controller-reference.md","subtitle":null,"summary":"Intercept the reorder POST action for customer accounts using Liquid controller templates at `controllers/accounts/orders/`. Hook into before, after, and final phases to customize reorder behavior.","type":"Developer_Documentation","video_url":"","keywords":"liquid, controllers, Accounts Orders, storefront, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nThe Accounts Orders controller handles requests related to accounts orders functionality in your StoreConnect storefront.\n\n| Property | Value |\n|----------|-------|\n| **Controller** | `OrdersController` |\n| **Liquid Template Path** | `controllers/accounts/orders/` |\n| **Namespace** | Accounts |\n\n## Actions\n\n| Action | HTTP Method | Route | Liquid Page |\n|--------|-------------|-------|-------------|\n| `reorder` | POST | `/accounts/orders/reorder` | — |\n\n## Liquid Controller Lifecycle\n\nFor each action, Liquid controller templates are executed in three phases:\n\n1. **Before** — `controllers/accounts/orders/{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/accounts/orders/reorder.liquid`:\n\n\n```liquid\n\n{% before %}\n  variables custom_heading: \"Welcome\"\n{% endbefore %}\n```\n"}