For OpenCart 2.3, 3.0, 4.0 and 4.1
WHAT YOU SET (Extensions > Modules > Supreme Checkout Fields)
What the shopper sees
- A box under the cart page title. Answers are kept at once as the shopper types, and conditional fields appear and disappear without a reload.
- When a required answer is missing, the checkout sends the shopper back to the cart (the One Page Checkout page too) with the missing fields marked.
- After a paid order the next cart starts empty; a failed payment keeps the answers.
What you see on an order
- The answers, with the labels as the shopper saw them, under the order date on the admin order page, the invoice and the shipping list. A tick box reads "Yes". Fields that were hidden or empty are not stored.
- Stored in table oc_checkout_field_order, kept if you uninstall.
Safe by design
- Answers are checked on the server against your field list: unknown fields, list answers that are not an option and hidden fields are dropped; text is cut and stripped of tags, and escaped on every page.
- Admin pages need Access, changes need Modify. Storefront wording is in one language file to copy and translate.
Notes
- Fields are on the cart page, not inside the checkout forms; no file upload field.
- The editor labels and order list headings in the admin are in English only.
- Tested on OpenCart 4.1.0.4, 4.0.2.3, 3.0.5.1 and 2.3.0.2 (shop-side flows by HTTP tests; the box script was not driven in a real browser). On 2.3 the shipping list could not be checked: the core 2.3 shipping list stops on PHP 8.