Sometimes you can experience issues with widgets not loading correctly, especially if you are using WordPress and/or certain tools to manage your website.

Our widget loader is hosted by Tiqets and needs to be loaded by the affiliate partner in order for the widgets to work.
Some tools do not load widget loader from Tiqets but try to include the loader within their website which leads to the widget not loading.

How to confirm that the described behavior is causing the issue?

The issue can be confirmed when inspecting the your website with the developer tools.

This is how the URL of the widget loader should look like to make it work:

src="https://widgets.tiqets.com/loader.js"

This is how it looks when the issue is happening on the affiliate website some-other-url.com:

src="https://some-other-url.com/loader.js"

How to fix it?

There are two approaches to fix the issue:

  1. If you are a tech-savvy person, you can check if the tool you are using to load the widget loader from http://tiqets.com and not including it in your website.

  2. If you're not tech-savvy or you are unable to make the changes using your tool, you can apply the fix as shown below.

The fix: changing the widget loader script

This is the widget code as returned by the Affiliate Portal:

<div data-tiqets-widget="discovery" data-cards-layout="responsive" data-content-type="product" data-partner="affiliate-sitebrand" data-item_count="4" data-destination-type="city" data-destination-id="75061"></div><script defer src="https://widgets.tiqets.com/loader.js"></script>

It consists of two parts:

 

The div part: This is the code to determine the type of the widget, the product(s) shown, etc. There can be several of these on one page.

<div data-tiqets-widget="discovery" data-cards-layout="responsive" data-content-type="product" data-partner="affiliate-sitebrand" data-item_count="4" data-destination-type="city" data-destination-id="75061"></div>

This part does not cause the issue and can remain unchanged.

 

The script part: This is the code for the widget loader and needs to be present exactly once per page, regardless of the number of Discovery/Availability Widgets on the page.

<script defer src="https://widgets.tiqets.com/loader.js"></script>

This is what we need to fix in order to make sure the widget(s) do load correctly and show up on the page.

Please replace the script code above by this one:

<script> const tq_script = document.createElement("script"); tq_script.src ="https://widgets.tiqets.com/loader.js";  tq_script.defer=true; document.body.appendChild(tq_script);</script>

This script prevents the loader from being incorrectly loaded.