Skip to main content

Selling passes on your website

Using the Pass links widget

Basic integration

Installation

  1. Paste the provided code snippet in the body of your HTML:

    <script src="<https://web-cdn.fixr.co/scripts/fixr-checkout-widget.v1.min.js>"></script>

    For page load time reasons, best to place it just above the closing </body> tag.

  2. Add a link to a FIXR pass page in the HTML of your page (replacing <your_pass_id> with the ID of your pass):

    <a href="<https://fixr.co/passes/><your_pass_id>">View pass</a>

That’s it! Any anchor links on your page will now open a modal popup instead of redirecting to fixr.co

Advanced integration

Theming

Append a theme parameter to the script tag to set the widget to either light or dark mode.

Dark:

<script src="<https://web-cdn.fixr.co/scripts/fixr-checkout-widget.v1.min.js?theme=dark>"></script>

Light:

<script src="<https://web-cdn.fixr.co/scripts/fixr-checkout-widget.v1.min.js?theme=light>"></script>

If no theme is set the widget will default to light. Themes can be overridden on individual link tags by appending the same theme parameter directly on the link:

<a href="<https://fixr.co/passes/><pass_id>?theme=dark">View pass</a>

Styling

Did this answer your question?