§5.12
Checkout and order result
- Phase 11.3
- theme 1.13.0
Two new pages (contract 1; the core view opens when the theme does not have them):
| File | Data |
|---|---|
checkout.wcp |
$step (account / verify / details / review), $steps[key, label, current, done, url], $guest, $client {name, email} | null, $links (cart, checkout), $signin {login_url, register_url, guest_allowed, guest_action, types, countries, values}, $verify {email, minutes, action, resend_action, change_action, wait}, $details {form_html, incomplete}, $review {summary, ref, ready, problems, items, pending, verify_url, changed, agreements[id, version_id, title, url, field, required], marketing_html, billing {name, contact, email, phone, address, national_id, tax, edit_url}, action, payment_note} |
ordercomplete.wcp |
$order {id, number, total}, $invoice {number, total, due, url} | null, $status {key, message, tone ok / review / wait / bad, poll, poll_url}, $service_note, $payable, $no_methods, $methods {cards[], saved[], wallet, transfer}, $pay_action, $request_key, $guest, $links |
Rules
- The confirmation form requires the hidden
ref(price reference) field andshown[id](shown version id) for every agreement; agreement boxes are never pre-ticked. Whenchangedis set, aprice_ackcheckbox must be drawn. $review['billing']['national_id']andtaxare masked only; the theme cannot show the raw number. The billing form is a core block (details.form_html); it is drawn with thewi-core-publicwrapper (field colours in dark mode).- The payment page asks for no card details; the card form is always the bank's page. A saved card is never pre-selected and the
confirmcheckbox is required.request_keyis new on every render; the theme must not change it. - No provider message is shown; only
$status['message']. Status refresh is done bytheme.jswithdata-checkout-status+data-poll-url(at most 12 × 10 s); a theme with its own script must not exceed this limit. No inline scripts. - The page data has no
accountkey (it would clash with the header's session data); the account step is$signin.