For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 AddressSelectionPage during its process_pre_order step, 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 of ShippingOptionSelectionPage.

Valid Condition (is_valid):

  • Returns true only if has_remote_price = true is set in pre_order.data.

Skip Conditions:

  • Page is skipped if are_remote_prices_set = true is already set in pre_order.data.

Page Context: (empty)

Previous Page: AddressSelectionPage

Next Pages:

  • ShippingOptionSelectionPage (or the configured shipping option selection variant)

get
Header parameters
x-requested-withstring · enumRequired

Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.

Default: XMLHttpRequestPossible values:
CookiestringOptional

Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)

Responses
200

Remote Price Calculation Page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=RemotePriceCalculationPage
GET /orders/checkout/?page=RemotePriceCalculationPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200

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?