Get Gift Box Page context
Presents the gift box selection form. The user may add an optional personal note, request a gift video, and confirm whether a gift video notification has been sent.
The page_context exposes the price of the gift box product so the storefront can display it to the user before confirmation.
Preconditions:
GIFT_BOX_CONFIGURATIONS.is_activemust betruepre_order.user_emailmust be set
Skip Conditions:
Page is auto-processed when a gift box selection already exists on the pre-order (i.e.,
pre_order.gift_boxis notnull)
Configuration:
GIFT_BOX_CONFIGURATIONS: Must haveis_active: true. Theskufield identifies the gift box product used to resolve the displayed price. Whenskuisnull, the price is0.00.
Next Pages (determined dynamically):
Proceeds to the next applicable checkout step once gift box selection is complete
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>)
Gift box page context retrieved
GET /orders/checkout/?page=GiftBoxPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Gift box page context retrieved
{
"context_list": [
{
"page_name": "GiftBoxPage",
"page_slug": "giftboxpage",
"page_context": {
"price": "5.00"
}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"gift_box": null
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

