Get Remote Price Calculation Page context
This page appears in the checkout flow when basket items have prices that must be fetched from a remote service. It sits between the address selection step and the shipping option selection step. The page has no visible context of its own; its purpose is to trigger the remote price lookup on POST.
Preconditions:
Basket must not be empty
A shipping address must be selected (
check_address_selected)
has_remote_price flag:
Set by
AddressSelectionPageduring itsprocess_pre_orderstep, after the shipping address is saved.Checks whether any basket item has a product attribute matching
REMOTE_PRICE_ATTRIBUTE_KEY(default:"has_remote_price") with value"true".If
true,AddressSelectionPage.next_page()routes directly to this page instead ofShippingOptionSelectionPage.
Valid Condition (is_valid):
Returns
trueonly ifhas_remote_price = trueis set inpre_order.data.
Skip Conditions:
Page is skipped if
are_remote_prices_set = trueis already set inpre_order.data.
Page Context: (empty)
Previous Page: AddressSelectionPage
Next Pages:
ShippingOptionSelectionPage(or the configured shipping option selection variant)
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>)
Remote Price Calculation Page context retrieved
GET /orders/checkout/?page=RemotePriceCalculationPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Remote Price Calculation Page context retrieved
{
"context_list": [
{
"page_name": "RemotePriceCalculationPage",
"page_slug": "remotepricecalculationpage",
"page_context": {}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"shipping_address": {
"pk": 10,
"title": "Home",
"line": "123 Main St"
}
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

