Widget 2.0
    • PPL Access Point Widget — Implementation Guide for E-shops
    • 1. Quick Start — Integration in 5 Minutes
    • 2. Embedding the Widget into a Page
    • 3. Static HTML Integration
    • 4. Integration: Vanilla JavaScript
    • 5. Integration: PHP
    • 6. Integration: React
    • 7. Complete API Reference
    • 8. Advanced Scenarios
    • 9. Communication Channels Overview
    Switch to czech

    8. Advanced Scenarios

    8.1 Multiple Instances on One Page#

    Each widget instance has an isolated state (Shadow DOM, its own store, its own API cache). Multiple widgets on one page are supported:
    If you use a single api-key for both instances and need different configuration for each, override values in the config attribute:
    Limitation: We recommend a maximum of 2–3 instances per page due to map rendering limits (WebGL).

    8.2 Selection with Confirmation#

    A pattern for checkout where you want to display a confirmation dialog before accepting the selection:

    8.3 Conditional (Lazy) Widget Loading#

    The widget can be loaded only when the user needs it — for example, after selecting PPL as the delivery method:

    8.4 Checking Script Load Status#

    Modified at 2026-04-28 09:31:27
    Previous
    7. Complete API Reference
    Next
    9. Communication Channels Overview
    Built with