§5.11
Domain cart, products with files and suggestions
- Phase 11.2
- theme 1.12.0
No new page was added to the contract; fields were added to existing pages (older themes keep working and do not show the new fields).
| File | New data |
|---|---|
domainchecker.wcp |
On every result cart (mode register / transfer, action POST address, url transfer page) — when the sales product is enabled; order (enabled, label, transfer, note) |
configureproduct.wcp |
$form['multipart'] (with a file field the form must have enctype="multipart/form-data"), $form['domain_only'] (Domain sales product: no cycle cards, hidden cycle), $form['domain']['documents'][] (field, type text / select / checkbox, label, required, options, value) and $form['domain']['documents_after']; on file items field (requirement_files[key]), file (uploaded file name or null), accept, hint |
cart.wcp |
Per line files (file names), documents_note (the extension asks for documents after the order); on the page $suggestions (hosting[name, price, cycle, free_tld, url], domains[tld, price, free, url]) |
Rules
- A file field is drawn with
<input type="file" name="{{ $it['field'] }}" accept="{{ $it['accept'] }}">; the template creates no file names or paths. The client is only shown the file's name; there is no content download link and none should be added. - Files are always checked in the core (extension + MIME + signature, active content, image re-encoding, optional virus scan); neither theme nor module can skip this check.
- A preview submission does not store the file.
theme.jsdoes not auto-preview while a file is selected; a theme that writes its own script must not auto-submit in a way that loses the selected file. - The transfer code field is drawn empty when editing and must be entered again (
cart.domain.epp_reenter). - Suggestions are links only; amounts are engine output. A suggestion card cannot change price or order rules.
- Domain documents in the client panel arrive as a separate card inside the
domain_info_htmlblock (the block list did not change).