Get Order Selection Page context
If additional information needs to be collected from the user during checkout, a custom schema can be defined on the Order model via the admin interface. This page returns that schema so the frontend can render the appropriate form. The submitted value is stored in pre_order.data['extra_field'] and written to the order upon completion. This is an independent page — submitting it does not advance the checkout flow.
Preconditions:
None — this page is always reachable regardless of checkout state.
Skip Conditions:
Page is skipped if
extra_fieldhas already been set inpre_order.data.
Next Pages:
No further checkout page from this step (
EmptyPage)
Note: This page is only used by projects that have a custom order schema configured in the admin interface.
Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.
XMLHttpRequestPossible values: Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)
Order Selection Page context retrieved
GET /orders/checkout/?page=OrderSelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Order Selection Page context retrieved
{
"context_list": [
{
"page_name": "OrderSelectionPage",
"page_slug": "orderselectionpage",
"page_context": {
"schema": {
"type": "object",
"properties": {
"preference": {
"type": "string",
"enum": [
"gift",
"standard"
]
}
}
}
}
}
],
"pre_order": {
"user_email": "user@akinon.com"
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

