§5.16
My points
- Phase 12.1
- theme 1.17.0
clientloyalty.wcp (new, optional). Address site_url('client.account.loyalty') (/hesabim/puanlarim). While the loyalty program is off the page returns 404 and does not appear in the menu. Without the file the core view is drawn.
| Variable | Content |
|---|---|
$summary |
available, pending, expiring (formatted number), expiring_at (formatted date or empty), value (money value of the available points, formatted) |
$program |
rate ("100 points = 10.00 ₺"), min, hold_days, expiry_months |
$rows |
Movements on this page: type (earn, redeem, reverse, expire, adjust), label, tone, points (unsigned, formatted), sign (+ / −), date, detail (plain text) |
$blocks |
redeem_html (redeem form or a "at least … points are needed" note), pagination_html, notices_html |
Rules: the redeem form is a core block; the theme writes no form and does not change field names (points, single-use token). Calculation, uniqueness and permission are on the server. detail is plain text suitable for the client: the administrator's reason and internal details never arrive; the theme only prints it. The default theme marks the available points with data-loyalty-available and rows with data-loyalty-row; on narrow screens the redeem box comes before the movements (.wi-cols--side-first).