Get Delivery Bags Page context
Returns the delivery bags fee calculated for the current basket. This page allows users to confirm (and optionally choose the quantity of) delivery bags to include with their order. This is an independent page — submitting it does not advance the checkout flow.
Preconditions:
Basket must not be empty
DELIVERY_BAGS_CONF.is_activemust betrue(is_delivery_bags_activecheck)
Skip Conditions:
Page is always considered done when
DELIVERY_BAGS_CONF.is_activeistrue(i.e.,is_already_done()mirrors theis_valid()check)
Configuration: Requires DELIVERY_BAGS_CONF dynamic setting to be active. See the DELIVERY_BAGS_CONF section in Dynamic Settings above for full details.
Next Pages:
No further checkout page from this step (
EmptyPage)
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>)
Delivery Bags Page context retrieved
GET /orders/checkout/?page=DeliveryBagsPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Delivery Bags Page context retrieved
{
"context_list": [
{
"page_name": "DeliveryBagsPage",
"page_slug": "deliverybagspage",
"page_context": {
"bags_fee": "5.99"
}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"total_amount": "155.99"
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

