Developer portal

Embedded Seating Plans Legacy Adapter

Keep your existing V1 page while switching to the new seat plan script

Keep the LTD.SeatPlan.init and the current document events.

For a new integration, use Embedded Seating Plans V2 instead. This adapter is for existing Embedded Seating Plans pages that should keep the V1 API.

Replace the scripts

Replace the old scripts:

<script src="https://finale-cdn.uk/latest/polyfill.js"></script>
<script src="https://finale-cdn.uk/latest/seat-plan.js"></script>

with:

<script src="https://seatplan-prod-bahjatbefnc9h6a7.a01.azurefd.net/seatplan-legacy.iife.js"></script>

Notes:

  • That file already includes the widget CSS
  • The new host does not serve polyfill.js

Example

<div class="ltd-legend"></div>
<div class="ltd-seatplan"></div>
<p class="ltd-seatplan__preloader">Preparing Seat Plan...</p>
<script src="https://seatplan-prod-bahjatbefnc9h6a7.a01.azurefd.net/seatplan-legacy.iife.js"></script>
<script>
  LTD.SeatPlan.init({
    clientId: "your-client-id",
    performanceId: "performance-id",
    sandbox: false
  });
</script>
Topic Behaviour
init() Returns the instance immediately. init().then(...) still runs once the plan is ready
.ltd-basket Still honours display-tickets, display-submit, submit-class, and submit-label
Touch devices Host gets ltd-seatplan--mobile (position: fixed). A later page rule can set top

Sandbox and hosts

sandbox Host
false or omitted https://spdp.londontheatredirect.com (production)
true https://spdp.finale-stage.uk (stage)

Both hosts use:

  • GetSeatingPlanScheme.ashx
  • GetSeatingPlanAvailability.ashx
  • ValidateSeatsSelection.ashx

Supported init fields

These init fields still apply. 'true', 'false' and numeric strings are coerced as before.

Field Group
filterPriceBands Display
displayFacePrice Display
showOffers Display
disableStrikethroughPrice Display
limitSelectedSeats Selection
margin Layout
locale Localisation
i18n Localisation
behavior Behaviour
color Appearance
event.scrollZoom Events
event.scrollMove Events
event.doubletapZoom Events
event.forceScrollY Events
legend.reverseOrder Legend
legend.style Legend
zoom.min / zoom.max Zoom

The Embedded Seating Plans table says double-tap zoom defaults to on and wheel zoom to off. This script does the opposite:

Option V1 docs default Legacy adapter default
Double-tap zoom on off
Wheel zoom off on

Events

Event Description
LTD.Basket.OnSubmit Fires after validation succeeds
LTD.Basket.OnSubmitBlocked Fires when the selection is invalid
OnDrawStarted / OnDrawFinished Wrap the first plan render
OnPendingStarted / OnPendingFinished After OnReady, each fetch emits one pair
OnError Includes error, so e.detail.error.message works

Submit detail

Property Contents
detail.ticketIds Reserved seats
detail.generalAdmission Standing tickets, when the plan has them

Programmatic select / deselect

A host can select or deselect by dispatching OnSeatSelected or OnSeatUnselected with detail.seat set to Iid, Tid, or id.

Behaviour notes

Topic Notes
Availability refresh Still refreshes by itself, on the new interval: 10s, then 20s, then 40s, then every 60s
canvasFillMethod Unset fits the plan inside the area ("contain"). Set "cover" for the old fill

Unsupported options

Setting one of the first three prints a console line.

Option Effect Use instead
stretchToCanvas Does nothing (console warning) canvasFillMethod
marginBottom Does nothing (console warning) margin
zoom.step Does nothing (console warning). Stops are spaced between zoom.min and zoom.max zoom.min / zoom.max

No longer used

Option
version
plugins
generateStructure
seatPlanId
axisHold
pinchScaleFactor
scaleFactor
resizeDelta

GA popover labels

GA popover labels follow the active language. Override them in i18n.generalAdmission:

Key Placeholders
title
subtitle
perTicket %s — price
upTo %d — count
quickSelect
adjustQuantity
close
clearAll
selectTickets
updateTickets %d — count, %s — total