Embedding Multiple Ticket Widgets on the Same Page

The Ticket Widget Generator now supports generating code for multiple widgets in one pass. Here's how to enable multi-widget mode, configure each widget, and embed the final code in your website.

Accessing the Ticket Widget Generator:

  • Log in to your Purplepass event organizer dashboard
  • Select Tools from the top navigation bar
tools-1.jpg
  • Select the Ticket Widgets option

ticket widget tool.jpeg

Enabling Multi-Widget Mode

  • In the widget generator, check Multiple widget on
Multi Widget Checkbox.jpg
  • Select your first event, and click Apply
  • The Choose widget # dropdown appears. The first entry is Widget 1
Widget Drop Down.jpg

Adding & Configuring Widgets

Add Widget

  • Click + to create Widget 2, Widget 3, and so on
  • Each widget is listed separately in the dropdown

Select Events

  • For each widget, choose the event to display

Choose Display Elements (per widget)

Generating and Embedding the Code on Your Site

Generate Code.jpg
  • After all widgets are configured, click Generate Code, it will copy to your clipboard
  • First, take the script tag
  • Paste this single <script> just before </body> on the page
  • The same script handles every widget on that page
__body_ script.jpg
  • There will be 1 div placeholder per widget
  • Each <div> represents one event widget
one div per widget.jpg
  • Place the divs wherever you want their widgets to appear
  • Save and publish. Refresh the page to verify each widget renders in its assigned spot

Example: If you create 4 widgets you’ll embed 1 script tag + 4 div containers (one for each widget).

Notes

  • Ordering: Widgets render in the order of their <div> placement within the DOM
  • Re-use on multiple pages: Use the same script block across pages; include only the required widget <div>s on each page
  • Editing widgets later: Reopen the generator, modify the widget, regenerate code, and replace the corresponding <div> snippet. The script block remains unchanged