§5.15
Order page and the agent on a ticket
- alpha.86
- theme 1.16.0
Order page — store.wcp (new, optional). Address site_url('cart.store') (/sepet/urunler); the selected category is ?kategori={id}. If the file is not in the theme, the core fallback view is drawn and the site does not break.
| Variable | Content |
|---|---|
$areas |
Areas with listed products: key, name, categories (each id, name, count, icon, url, active, open, children → id, name, count, url, active) |
$selected |
Selected category id (the first category for an invalid / non-displayable selection; null when there are no products) |
$category |
id, name, summary, area (area name), url (showcase category page) or null |
$products |
Same as the showcase card (products.wcp category mode): name, tagline, features, starting, featured, url, order |
$actions |
key (register, transfer, cart), label, icon (name in the theme icon set), url; cart also has count |
$tax_note, $order |
Same as the showcase |
Rules: when category links carry data-flow-link the switch happens without a page reload (the region is inside <!--wi-flow-->). If a selector is used on narrow screens, select[data-store-pick] must be inside a GET form (action = order page, name="kategori"); the default theme.js follows the flow on change, and without the script it works with a <noscript> button. The selected category is marked with aria-current="page". Visibility and price come from the core; the theme does not filter categories or products. The cart's empty state $links['store'] is this page ($links['home'] also goes to the same address for backward compatibility; the site home page is $links['site']).
Agent on a ticket — viewticket.wcp. $ticket['assignee']: the assigned administrator's first name and the initial of the last name ("Ahmet Y."), or null when unassigned. Only this text arrives; no email, full name or id. The default theme draws the line with data-ticket-assignee.